Skip to content

Commit

Permalink
add uninitialized toleration
Browse files Browse the repository at this point in the history
nodes are tainted with node.cloudprovider.kubernetes.io/uninitialized
because we set cloudProvider: external.

this prevents some crucial pods from being scheduled (for example
we need the kube-vip pod to start on the first node so it can
announce the control plane IP)
  • Loading branch information
eaudetcobello committed Jul 12, 2024
1 parent 39e6e5e commit 55a6dcd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/vsphere/cluster_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ spec:
name: kube-vip
namespace: kube-system
spec:
tolerations:
- key: "node.cloudprovider.kubernetes.io/uninitialized"
operator: "Exists"
effect: "NoSchedule"
containers:
- args:
- manager
Expand Down Expand Up @@ -896,6 +900,10 @@ data:
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists
#https://github.com/kubernetes-sigs/vsphere-csi-driver/issues/2284
- key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
effect: NoSchedule
volumes:
- name: vsphere-config-volume
secret:
Expand Down

0 comments on commit 55a6dcd

Please sign in to comment.