I encountered this issue while deploying both CCM and CSI.
In the CCM manifest:
spec:
nodeSelector:
node-role.kubernetes.io/control-plane: ""
Similarly, in the CSI controller manifest:
spec:
nodeSelector:
node-role.kubernetes.io/control-plane: ""
In my cluster, control-plane nodes have the label:
node-role.kubernetes.io/control-plane: "true"
which caused both CCM and CSI controllers to not find any nodes. After patching their node selectors to be:
spec:
nodeSelector:
node-role.kubernetes.io/control-plane: "true"
everything worked right away.
How can I get CCM and CSI to work without having to patch them?