Merge pull request #24 from DavidSouther/currency-autoscaler

add autoscaler for currencyservice
This commit is contained in:
David Souther 2019-10-01 12:16:01 -04:00 committed by GitHub
commit 0c77d68947
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,3 +62,22 @@ spec:
- name: grpc - name: grpc
port: 7000 port: 7000
targetPort: 7000 targetPort: 7000
---
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: currencyservice
labels:
app: currencyservice
spec:
maxReplicas: 7
minReplicas: 1
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: currencyservice
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 19