support flannel dual stack (#9564)

pull/9574/head
Book shu 2022-12-14 12:47:35 +08:00 committed by GitHub
parent 94eae6a8dc
commit ff331f4eba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,11 @@ data:
net-conf.json: | net-conf.json: |
{ {
"Network": "{{ kube_pods_subnet }}", "Network": "{{ kube_pods_subnet }}",
"EnableIPv4": true,
{% if enable_dual_stack_networks %}
"EnableIPv6": true,
"IPv6Network": "{{ kube_pods_subnet_ipv6 }}",
{% endif %}
"Backend": { "Backend": {
"Type": "{{ flannel_backend_type }}"{% if flannel_backend_type == "vxlan" %}, "Type": "{{ flannel_backend_type }}"{% if flannel_backend_type == "vxlan" %},
"VNI": {{ flannel_vxlan_vni }}, "VNI": {{ flannel_vxlan_vni }},