HPA added

This commit is contained in:
Paul Warren 2022-08-24 07:09:25 +00:00
parent da7d39d84e
commit 6a2d6d713e

20
desteg-hpa.yaml Normal file
View 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