Skip to content
Snippets Groups Projects
Unverified Commit 69b67a29 authored by Ole Mathias Aa. Heggem's avatar Ole Mathias Aa. Heggem Committed by GitHub
Browse files

Calico: Add kube_service_addresses_ipv6 to serviceClusterIPs (#7889) (#7944)

Add IPv6 Service Addresses to BGP advertisement when 
calico_advertise_cluster_ips is true.
parent d57ddf0b
No related branches found
No related tags found
No related merge requests found
......@@ -240,7 +240,8 @@
"logSeverityScreen": "Info",
{% if not calico_no_global_as_num|default(false) %}"asNumber": {{ global_as_num }},{% endif %}
"nodeToNodeMeshEnabled": {{ nodeToNodeMeshEnabled|default('true') }} ,
{% if calico_advertise_cluster_ips|default(false) %}"serviceClusterIPs": [{"cidr": "{{ kube_service_addresses }}" }],{% endif %}
{% if calico_advertise_cluster_ips|default(false) %}
"serviceClusterIPs": [{"cidr": "{{ kube_service_addresses }}" } {{ ',{"cidr":"' + kube_service_addresses_ipv6 + '"}' if enable_dual_stack_networks else '' }}],{% endif %}
{% if calico_version is version('v3.18.0', '>') and calico_advertise_service_loadbalancer_ips|length > 0 %}"serviceLoadBalancerIPs": {{ _service_loadbalancer_ips }},{% endif %}
"serviceExternalIPs": {{ _service_external_ips|default([]) }} }}
changed_when: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment