feat: add option to control the k3s cloud controller
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
79da41d3b6
commit
1c20e20dec
@ -21,6 +21,7 @@ k3s_server_nodes:
|
||||
- "{{ ansible_hostname }}"
|
||||
k3s_server_flannel_backend_enabled: True
|
||||
k3s_server_network_policy_enabled: True
|
||||
k3s_server_cloud_controller_enabled: True
|
||||
k3s_server_feature_gates: []
|
||||
|
||||
k3s_server_manifests_templates: []
|
||||
|
@ -1,2 +1,5 @@
|
||||
#jinja2: lstrip_blocks: True
|
||||
- config={{ __k3s_config_dir }}/kubelet.yaml
|
||||
{% if not k3s_server_cloud_controller_enabled | bool %}
|
||||
- cloud-provider=external
|
||||
{% endif %}
|
||||
|
@ -24,6 +24,9 @@ kube-apiserver-arg:
|
||||
{% if not k3s_server_flannel_backend_enabled | bool %}
|
||||
flannel-backend: "none"
|
||||
{% endif %}
|
||||
{% if not k3s_server_cloud_controller_enabled | bool %}
|
||||
disable-cloud-controller: true
|
||||
{% endif %}
|
||||
{% if not k3s_server_network_policy_enabled | bool %}
|
||||
disable-network-policy: True
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user