feat: add flannel options
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-08-21 21:55:38 +02:00
parent 2079770a26
commit 5fed3d907b
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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