Files
buzz-sheet/k8s/base/hpa.yaml
T

26 lines
517 B
YAML

apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: buzz-sheet
labels:
app.kubernetes.io/name: buzz-sheet
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: buzz-sheet
minReplicas: 2
maxReplicas: 6
behavior:
scaleDown:
stabilizationWindowSeconds: 300
scaleUp:
stabilizationWindowSeconds: 30
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70