Skip to content

Commit 73ca3ad

Browse files
authored
fixing typo and adding cloud provider name
1 parent 6614785 commit 73ca3ad

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ disable_kube_proxy: false
187187
# Option to disable builtin cloud controller - mostly for onprem
188188
rke2_disable_cloud_controller: false
189189

190+
# Cloud provider to use for the cluster (aws, azure, gce, openstack, vsphere, external)
191+
# applicable only if rke2_disable_cloud_controller is true
192+
rke2_cloud_provider_name: "rke2"
193+
190194
# Path to custom manifests deployed during the RKE2 installation
191195
# It is possible to use Jinja2 templating in the manifests
192196
rke2_custom_manifests:

defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ disable_kube_proxy: false
148148
# Option to disable builtin cloud controller - mostly for onprem
149149
rke2_disable_cloud_controller: false
150150

151+
# Cloud provider to use for the cluster (aws, azure, gce, openstack, vsphere, external)
152+
# applicable only if rke2_disable_cloud_controller is true
153+
rke2_cloud_provider_name: "external"
154+
151155
# Path to custom manifests deployed during the RKE2 installation
152156
# It is possible to use Jinja2 templating in the manifests
153157
rke2_custom_manifests:

templates/config.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ kubelet-arg:
7878
{% endfor %}
7979
{% endif %}
8080
{% if (rke2_disable_cloud_controller | bool ) %}
81-
disable-cloud-controller : true
81+
disable-cloud-controller: true
82+
cloud-provider-name: "{{ rke2_cloud_provider_name }}"
8283
{% endif %}
8384

0 commit comments

Comments
 (0)