main
parent
c00e8a9514
commit
893e2d392e
1 changed files with 20 additions and 0 deletions
@ -0,0 +1,20 @@ |
||||
apiVersion: autoscaling/v1 |
||||
kind: HorizontalPodAutoscaler |
||||
metadata: |
||||
name: {{ .Release.Name }}-hpa |
||||
spec: |
||||
scaleTargetRef: |
||||
apiVersion: apps/v1 |
||||
kind: Deployment |
||||
name: {{ .Release.Name }}-hpa |
||||
minReplicas: 1 |
||||
maxReplicas: 5 |
||||
metrics: |
||||
- type: Resource |
||||
resource: |
||||
name: cpu |
||||
targetAverageUtilization: 80 |
||||
- type: Resource |
||||
resource: |
||||
name: memory |
||||
targetAverageValue: 200Mi |
Loading…
Reference in new issue