mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
refact ip stack (#11953)
This commit is contained in:
@@ -33,7 +33,7 @@ kube_ovn_central_replics: "{{ kube_ovn_central_hosts | length }}"
|
||||
kube_ovn_controller_replics: "{{ kube_ovn_central_hosts | length }}"
|
||||
kube_ovn_central_ips: |-
|
||||
{% for item in kube_ovn_central_hosts -%}
|
||||
{{ hostvars[item]['ip'] | default(hostvars[item]['fallback_ip']) }}{% if not loop.last %},{% endif %}
|
||||
{{ hostvars[item]['main_ip'] }}{% if not loop.last %},{% endif %}
|
||||
{%- endfor %}
|
||||
|
||||
kube_ovn_ic_enable: false
|
||||
@@ -62,6 +62,15 @@ kube_ovn_traffic_mirror: false
|
||||
|
||||
kube_ovn_external_address: 8.8.8.8
|
||||
kube_ovn_external_address_ipv6: 2400:3200::1
|
||||
kube_ovn_external_address_merged: >-
|
||||
{%- if ipv4_stack and ipv6_stack -%}
|
||||
{{ kube_ovn_external_address }},{{ kube_ovn_external_address_ipv6 }}
|
||||
{%- elif ipv4_stack -%}
|
||||
{{ kube_ovn_external_address }}
|
||||
{%- else -%}
|
||||
{{ kube_ovn_external_address_ipv6 }}
|
||||
{%- endif -%}
|
||||
|
||||
kube_ovn_external_dns: alauda.cn
|
||||
|
||||
# kube_ovn_default_gateway: 10.233.64.1,fd85:ee78:d8a6:8607::1:0
|
||||
@@ -74,6 +83,14 @@ kube_ovn_u2o_interconnection: false
|
||||
# kube_ovn_default_exclude_ips: 10.16.0.1
|
||||
kube_ovn_node_switch_cidr: 100.64.0.0/16
|
||||
kube_ovn_node_switch_cidr_ipv6: fd00:100:64::/64
|
||||
kube_ovn_node_switch_cidr_merged: >-
|
||||
{%- if ipv4_stack and ipv6_stack -%}
|
||||
{{ kube_ovn_node_switch_cidr }},{{ kube_ovn_node_switch_cidr_ipv6 }}
|
||||
{%- elif ipv4_stack -%}
|
||||
{{ kube_ovn_node_switch_cidr }}
|
||||
{%- else -%}
|
||||
{{ kube_ovn_node_switch_cidr_ipv6 }}
|
||||
{%- endif -%}
|
||||
|
||||
## vlan config, set default interface name and vlan id
|
||||
# kube_ovn_default_interface_name: eth0
|
||||
|
||||
Reference in New Issue
Block a user