Merge pull request #24 from DavidSouther/currency-autoscaler
add autoscaler for currencyservice
This commit is contained in:
commit
0c77d68947
1 changed files with 19 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue