Skip to content

Commit 0d84328

Browse files
committed
Omit cloud-provider-name if rke_disable_cloud_controller is enabled,
otherwise the taint "node.cloudprovider.kubernetes.io/uninitialized" is applied and cluster does not finish setup as nodes are unschedulable.
1 parent e32888f commit 0d84328

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/config.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ kube-proxy-arg:
9191
{% endif %}
9292
{% if (rke2_disable_cloud_controller | bool ) %}
9393
disable-cloud-controller: true
94+
{% endif %}
95+
{% if not (rke2_disable_cloud_controller | bool ) %}
9496
cloud-provider-name: "{{ rke2_cloud_provider_name }}"
9597
{% endif %}
9698
cluster-cidr: "{% for network in rke2_cluster_cidr %}{{ network }}{% if not loop['last'] %},{% endif %}{% endfor %}"

0 commit comments

Comments
 (0)