I have implemented HPA for all the pods based on CPU and it was working as expected. But when we did a maintenance of worker nodes, it seems tha HPA's got messed up as it failed to identify it. Do I need to disable HPA temporarily during maintenance and bring it up once the maitenance is over.
Please suggest
HPA Manifest -
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: pod-name-cpu
spec:
maxReplicas: 6
minReplicas: 2
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: pod-name
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 60