Microservices - Orchestration with Kubernetes
Given this Horizontal Pod Autoscaler configuration:
If the current CPU usage is 90% and there are 3 pods running, how many pods will the autoscaler try to set?
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: api-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: api-server
minReplicas: 2
maxReplicas: 6
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 60
If the current CPU usage is 90% and there are 3 pods running, how many pods will the autoscaler try to set?
