kelseyhightower / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way. No scripts.
Apache License 2.0
41.3k stars 14.13k forks source link

wrong NodeSelector #595

Open gkoperczak001 opened 4 years ago

gkoperczak001 commented 4 years ago

As per step: kubectl apply -f https://storage.googleapis.com/kubernetes-the-hard-way/coredns-1.7.0.yaml we can see that nodeSelector is beta.kubernetes.io/os while by following previous steps nodeSelector is kubernetes.io/os what can be checked with kubectl get nodes --show-labels. Due to this mismatch pods cannot enter running state and an error is visible: 0/3 nodes are available: 3 node(s) didn't match node selector. This at least apply for version 1.19.0 kubernetes.