Debugging HPA Issues

There can be scenarios where HPA running on nudr-drservice deployment and nudr_notify_service might not get the CPU metrics successfully from the pods. Execute the following command to view the HPA details:

kubectl get hpa

In this scenario, you need to check the following:
  • Check whether metrics server is running on the kubernetes cluster. If it is running, even then the CPU usage pod might not be accessible. In this case, you need to check the metrics-server values yaml file for the args passed as shown below:

    Figure 5-14 metrics-server yaml file

    img/troubleshoot-metrics-server.png
  • If it requires any update, then do the same and restart the metrics server pod. You have to wait for couple of minutes after starting the metrics server to see the CPU usage update. For this, execute the kubectl get hpa command.

    Figure 5-15 CPU Usage Update

    img/troubleshoot-hpa-details.png