HPA added
This commit is contained in:
parent
da7d39d84e
commit
6a2d6d713e
1 changed files with 20 additions and 0 deletions
20
desteg-hpa.yaml
Normal file
20
desteg-hpa.yaml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
apiVersion: autoscaling/v2
|
||||||
|
kind: HorizontalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
name: desteg-hpa
|
||||||
|
spec:
|
||||||
|
scaleTargetRef:
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
name: desteg
|
||||||
|
minReplicas: 1
|
||||||
|
maxReplicas: 24
|
||||||
|
metrics:
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: cpu
|
||||||
|
target:
|
||||||
|
type: Utilization
|
||||||
|
averageUtilization: 50
|
||||||
|
|
Loading…
Reference in a new issue