I think that it could be that some of the pod’s containers do not have the relevant resource request set. Accordingly to the Kubernetes HPA documentation, when this happens the utilization for the pod can not be defined (and the autoscaler will not take any action for that metric).
You could do a quick check by running kubectl get hpa
to list the current autoscalers. Or you could get a more detailed description with kubectl describe hpa
. If you see some targets listed as <unknown>
then it's most likely that the resource request was not set properly.
In case you have already set resources requests in for all your pods and you still see this message, maybe it would be helpful if you share more details about how you're defining requests and/or limits.
These articles from Kubernetes documentation could be useful:
Specify a memory request and memory limit
Specify a CPU request and a CPU limit
Regards!