Kubernetes - Resource Management
Given this HPA YAML snippet:
What happens if the CPU usage stays at 80% for a while?
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: myapp-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: myapp
minReplicas: 1
maxReplicas: 4
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 60What happens if the CPU usage stays at 80% for a while?
