I've got a Pod
configuration from Docker that involves 7 nodes. It gets stuck in Pending
state unless I remove two of the containers from the config. It doesn't matter which two I remove. It only works with five containers, which seems like a hard limit that I can't find documented.
How do I run more than 5 containers in a kubernetes Pod
on Google Container Engine?
I've found that my pods usually get stuck when using machine type n1-standard-1, It looks like it may be due to memory, I havent had that problem since I started using the n1-highmem-* variant available.
I'm fairly sure there isn't a hard cap of 5 containers per pod, so there's likely some other reason why the scheduler can't find a node to run your pod on.
You should be able find a message saying why the pod is still pending by running kubectl describe pod $PODNAME
to see the most recent 'event' that happened to the pod, or by running kubectl get events
to see all the recent events from the cluster.