kubernetes: Replication controller with nodeSelctor conditional doesn't succeed if nodes are labeled after it is submitted
Kubenetes version 1.4.
Replication controller YAML contains:
spec:
nodeSelector:
foo: bar
containers:
kubectl create -f above file.
Realize you’ve forgotten to label nodes or have a typeo, do:
kubectl label nodes <nodename> foo=bar
Expected: rc to notice newly matching nodes and proceed.
What happened: rc did not proceed.
Work around: kubectl delete -f above file and create again, proceeds immediately.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (14 by maintainers)
Tested with the latest codes (1.7), it works as expected. let me try 1.4 😃.
Updating node label will impact pending pods but will not impact running pods, right? I remembered that the pending pods will become running if node label updates to match the selector when I worked on fixing another issue.