mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-06-26 13:28:01 +00:00
flannel: set EnableNFTables when kube_proxy_mode use nftables (#13291)
* flannel: set EnableNFTables when kube_proxy_mode use nftables * Clean up cni-flannel.yml.j2 by removing comments Removed commented-out environment variable for cache readiness. * update cni-flannel.yml.j2 --------- Co-authored-by: ric-mb <noreply@github.com>
This commit is contained in:
@@ -37,6 +37,9 @@ data:
|
|||||||
{% if ipv6_stack %}
|
{% if ipv6_stack %}
|
||||||
"EnableIPv6": true,
|
"EnableIPv6": true,
|
||||||
"IPv6Network": "{{ kube_pods_subnet_ipv6 }}",
|
"IPv6Network": "{{ kube_pods_subnet_ipv6 }}",
|
||||||
|
{% endif %}
|
||||||
|
{% if flannel_version is version('0.25.5', '>=') %}
|
||||||
|
"EnableNFTables": {{ (kube_proxy_mode == 'nftables') | bool | to_json }},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
"Backend": {
|
"Backend": {
|
||||||
"Type": "{{ flannel_backend_type }}"{% if flannel_backend_type == "vxlan" %},
|
"Type": "{{ flannel_backend_type }}"{% if flannel_backend_type == "vxlan" %},
|
||||||
|
|||||||
Reference in New Issue
Block a user