Kubernetes - Resource Management
You applied this HPA YAML but it does not scale pods as expected:
What is the most likely reason for no scaling?
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: test-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: test-app
minReplicas: 2
maxReplicas: 5
metrics:
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 70What is the most likely reason for no scaling?
