Skip to content

Commit 6614785

Browse files
authored
adding option to disable builtin cloud controller
1 parent 96494c7 commit 6614785

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ 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+
187190
# Path to custom manifests deployed during the RKE2 installation
188191
# It is possible to use Jinja2 templating in the manifests
189192
rke2_custom_manifests:

defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ 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+
148151
# Path to custom manifests deployed during the RKE2 installation
149152
# It is possible to use Jinja2 templating in the manifests
150153
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+
{% endif %}
83+

0 commit comments

Comments
 (0)