kubernetes pod affinity `requiredDuringSchedulingIgnoredDuringExecution` pods stuck in pending state

4/27/2018

I'm trying to use pod affinity to have 2 pods in the same node in gke so when I use requiredDuringSchedulingIgnoredDuringExecution pods are never creating and stuck at pending state throwing this error:

cluster-autoscaler pod didn't trigger scale-up (it wouldn't fit if a new node is added)

and when using preferredDuringSchedulingIgnoredDuringExecution pods are never assigned to same node.

-- yara mohamed
google-kubernetes-engine

0 Answers