Today I have deployed AKS service in Azure cloud and tried to start test services on it, however faced an error that Ingress pod stuck in Pending state because of the following:
0/2 nodes are available: 2 node(s) didn't match node selector.
I have checked nodeSelector for Nginx ingress:
nodeSelector:
kubernetes.io/os: linux
To fix the issue I have removed nodeSelector from deployment and now everything work as expected.
Below evidence that I'm using correct OS on my Kubernetes nodes:
Ingress version is 0.26.1 - deployed using manifests from github.
So, it is clear how to fix the issue, but what is a root cause here? Is it bug or knowledge gap?
