Skip to content

Commit f89e4ad

Browse files
Merge pull request #202 from strelok899/option_to_disable_builtin_cloud_controller
adding option to disable builtin cloud controller
2 parents 96494c7 + aa42f03 commit f89e4ad

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,13 @@ rke2_disable:
184184
# Option to disable kube-proxy
185185
disable_kube_proxy: false
186186

187+
# Option to disable builtin cloud controller - mostly for onprem
188+
rke2_disable_cloud_controller: false
189+
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+
187194
# Path to custom manifests deployed during the RKE2 installation
188195
# It is possible to use Jinja2 templating in the manifests
189196
rke2_custom_manifests:

defaults/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ rke2_disable:
145145
# Option to disable kube-proxy
146146
disable_kube_proxy: false
147147

148+
# Option to disable builtin cloud controller - mostly for onprem
149+
rke2_disable_cloud_controller: false
150+
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+
148155
# Path to custom manifests deployed during the RKE2 installation
149156
# It is possible to use Jinja2 templating in the manifests
150157
rke2_custom_manifests:

templates/config.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,7 @@ kubelet-arg:
7777
- {{ argument }}
7878
{% endfor %}
7979
{% endif %}
80+
{% if (rke2_disable_cloud_controller | bool ) %}
81+
disable-cloud-controller: true
82+
cloud-provider-name: "{{ rke2_cloud_provider_name }}"
83+
{% endif %}

0 commit comments

Comments
 (0)