diff --git a/k8s/hpa.yaml b/k8s/hpa.yaml index a695608..6d85633 100644 --- a/k8s/hpa.yaml +++ b/k8s/hpa.yaml @@ -10,15 +10,23 @@ spec: minReplicas: 2 maxReplicas: 20 metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 80 - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: 90 + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 90 + behavior: + scaleDown: + stabilizationWindowSeconds: 600 + policies: + - type: Pods + value: 1 + periodSeconds: 600 + selectPolicy: Min \ No newline at end of file