Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kubernetes - node capacity

Tags:

kubernetes

I'm running a small node in gcloud with 2 pods running. Google cloud console shows all resources utilization

<40% cpu utilization

about 8k n\w bytes

about 64 disk bytes.

When adding the next pod, it fails with below error.

FailedScheduling:Failed for reason PodExceedsFreeCPU and possibly others

Based on the numbers I see in google console, ~60% CPU is available. is there anyway to get more logs? Am I missing something obvious here?

Thanks in advance !

like image 365
Sahas Avatar asked Feb 12 '16 03:02

Sahas


1 Answers

As kubernetes reserve some space if more cpu or memory is needed you should check the capacity allocated by the cluster instead of the utilization.

kubectl describe nodes

You can find a deeper description about the capacity of the nodes in: http://kubernetes.io/docs/user-guide/compute-resources/

like image 163
agares Avatar answered Oct 09 '22 10:10

agares