Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Logs for downscale of GKE pods

Is it possible to check the logs of hpa. I want to check when the pod scaled and down. I can check the cluster scaling logs but I want the logs of pods on same node pool. Is there any way In the logs I can see the names of new pod but I want when the pod scaled up and scaled down the exact time of it. Like the cluster autoscaling logs. (statusscaleUpscaleDowneventResult)

4 1 346
1 REPLY 1

Hello @Robinwilliam15 

As per PjoterS from StackOverflow, you can check current status with this command:

$ kubectl get hpa

You can also use the "watch" flag to refresh view within 30 seconds each

$ kubectl get hpa -w

To check if HPA worked you have to describe it

$ kubectl describe hpa <yourHpaName>

Attach to this post is the link where the answer was provide for reference.

Top Labels in this Space
Top Solution Authors