Auto-scaling — automatic scaling.
1# Kubernetes HPA2apiVersion: autoscaling/v23kind: HorizontalPodAutoscaler4metadata:5 name: myapp-hpa6spec:7 scaleTargetRef:8 apiVersion: apps/v19 kind: Deployment10 name: myapp11 minReplicas: 212 maxReplicas: 1013 metrics:14 - type: Resource15 resource:16 name: cpu17 target:18 type: Utilization19 averageUtilization: 7020 behavior:21 scaleUp:22 stabilizationWindowSeconds: 6023 policies:24 - type: Percent25 value: 10026 periodSeconds: 6027 scaleDown:28 stabilizationWindowSeconds: 300
Types: