I am getting - when installing Cilium:
Warning FailedScheduling 4m21s (x17 over 84m) default-scheduler 0/1 nodes are available: 1 node(s) didn't match pod anti-affinity rules. preemption: 0/1 nodes are available: 1 node(s) didn't match pod anti-affinity rules.
How can I see the rule and can I change it?
If I do kubectl describe node
, id do not have anyy nodeAffinity
settings. And the Node has Taints:<none>
Run
$ kubectl get pods
, it shows Pending status. (kubectl get pods -o wide
)To describe the pod run
$ kubectl describe pod POD_NAME
, it shows a warning as part of events, if not works, try as suggested by @ Chris runkubectl get pod <name> -o yaml
. There you'll findspec.affinity
.After identifying which anti-affinity rules triggers the warning. You can choose to
For example : let's take a case, try to deploy 4 replicas of Ngnix deployment with podAntiAffinity rule in a 3 Node cluster. Here the last replica cannot be scheduled because no available Nodes left.