feat: add flannel options
This commit is contained in:
parent
2079770a26
commit
5fed3d907b
@ -30,6 +30,8 @@ k3s_server_cluster_dns: "10.43.0.10"
|
||||
k3s_server_nodes:
|
||||
- "{{ ansible_hostname }}"
|
||||
k3s_server_flannel_backend_enabled: True
|
||||
k3s_flannel_ipv6_masq_enabled: False
|
||||
# @var k3s_flannel_external_ip:value: $ "_unset_"
|
||||
k3s_server_network_policy_enabled: True
|
||||
k3s_server_cloud_controller_enabled: True
|
||||
k3s_server_kube_proxy_enabled: True
|
||||
|
@ -43,6 +43,13 @@ kube-controller-manager-arg:
|
||||
{% endif %}
|
||||
{% if not k3s_server_flannel_backend_enabled | bool %}
|
||||
flannel-backend: "none"
|
||||
{% else %}
|
||||
{% if k3s_flannel_ipv6_masq_enabled | bool %}
|
||||
flannel-ipv6-masq: True
|
||||
{% endif %}
|
||||
{% if k3s_flannel_external_ip is defined %}
|
||||
flannel-external-ip: "{{ k3s_flannel_external_ip }}"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if not k3s_server_cloud_controller_enabled | bool %}
|
||||
disable-cloud-controller: True
|
||||
|
Loading…
Reference in New Issue
Block a user