diff --git a/defaults/main.yml b/defaults/main.yml index 4259442..720dc8c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -24,6 +24,7 @@ k3s_server_nodes: k3s_server_flannel_backend_enabled: True k3s_server_network_policy_enabled: True k3s_server_cloud_controller_enabled: True +k3s_server_kube_proxy_enabled: True k3s_server_workload_enabled: True k3s_server_feature_gates: [] diff --git a/templates/etc/rancher/k3s/config.yaml.j2 b/templates/etc/rancher/k3s/config.yaml.j2 index 2a12d2c..503174d 100644 --- a/templates/etc/rancher/k3s/config.yaml.j2 +++ b/templates/etc/rancher/k3s/config.yaml.j2 @@ -39,11 +39,14 @@ kube-controller-manager-arg: flannel-backend: "none" {% endif %} {% if not k3s_server_cloud_controller_enabled | bool %} -disable-cloud-controller: true +disable-cloud-controller: True {% endif %} {% if not k3s_server_network_policy_enabled | bool %} disable-network-policy: True {% endif %} +{% if not k3s_server_kube_proxy_enabled | bool %} +disable-kube-proxy: True +{% endif %} {% else %} server: "https://{{ __k3s_server_ip }}:6443" {% endif %}