Adaptive Kube-ovn (#8454)
This commit is contained in:
parent
26a5948d2a
commit
52f221f976
1 changed files with 6 additions and 0 deletions
|
@ -89,7 +89,9 @@ dns:
|
||||||
networking:
|
networking:
|
||||||
dnsDomain: {{ dns_domain }}
|
dnsDomain: {{ dns_domain }}
|
||||||
serviceSubnet: "{{ kube_service_addresses }}{{ ',' + kube_service_addresses_ipv6 if enable_dual_stack_networks else '' }}"
|
serviceSubnet: "{{ kube_service_addresses }}{{ ',' + kube_service_addresses_ipv6 if enable_dual_stack_networks else '' }}"
|
||||||
|
{% if kube_network_plugin is defined and kube_network_plugin not in ["kube-ovn"] %}
|
||||||
podSubnet: "{{ kube_pods_subnet }}{{ ',' + kube_pods_subnet_ipv6 if enable_dual_stack_networks else '' }}"
|
podSubnet: "{{ kube_pods_subnet }}{{ ',' + kube_pods_subnet_ipv6 if enable_dual_stack_networks else '' }}"
|
||||||
|
{% endif %}
|
||||||
{% if kubeadm_feature_gates %}
|
{% if kubeadm_feature_gates %}
|
||||||
featureGates:
|
featureGates:
|
||||||
{% for feature in kubeadm_feature_gates %}
|
{% for feature in kubeadm_feature_gates %}
|
||||||
|
@ -271,7 +273,9 @@ controllerManager:
|
||||||
extraArgs:
|
extraArgs:
|
||||||
node-monitor-grace-period: {{ kube_controller_node_monitor_grace_period }}
|
node-monitor-grace-period: {{ kube_controller_node_monitor_grace_period }}
|
||||||
node-monitor-period: {{ kube_controller_node_monitor_period }}
|
node-monitor-period: {{ kube_controller_node_monitor_period }}
|
||||||
|
{% if kube_network_plugin is defined and kube_network_plugin not in ["kube-ovn"] %}
|
||||||
cluster-cidr: "{{ kube_pods_subnet }}{{ ',' + kube_pods_subnet_ipv6 if enable_dual_stack_networks else '' }}"
|
cluster-cidr: "{{ kube_pods_subnet }}{{ ',' + kube_pods_subnet_ipv6 if enable_dual_stack_networks else '' }}"
|
||||||
|
{% endif %}
|
||||||
service-cluster-ip-range: "{{ kube_service_addresses }}{{ ',' + kube_service_addresses_ipv6 if enable_dual_stack_networks else '' }}"
|
service-cluster-ip-range: "{{ kube_service_addresses }}{{ ',' + kube_service_addresses_ipv6 if enable_dual_stack_networks else '' }}"
|
||||||
{% if enable_dual_stack_networks %}
|
{% if enable_dual_stack_networks %}
|
||||||
node-cidr-mask-size-ipv4: "{{ kube_network_node_prefix }}"
|
node-cidr-mask-size-ipv4: "{{ kube_network_node_prefix }}"
|
||||||
|
@ -368,7 +372,9 @@ clientConnection:
|
||||||
contentType: {{ kube_proxy_client_content_type }}
|
contentType: {{ kube_proxy_client_content_type }}
|
||||||
kubeconfig: {{ kube_proxy_client_kubeconfig }}
|
kubeconfig: {{ kube_proxy_client_kubeconfig }}
|
||||||
qps: {{ kube_proxy_client_qps }}
|
qps: {{ kube_proxy_client_qps }}
|
||||||
|
{% if kube_network_plugin is defined and kube_network_plugin not in ["kube-ovn"] %}
|
||||||
clusterCIDR: "{{ kube_pods_subnet }}{{ ',' + kube_pods_subnet_ipv6 if enable_dual_stack_networks else '' }}"
|
clusterCIDR: "{{ kube_pods_subnet }}{{ ',' + kube_pods_subnet_ipv6 if enable_dual_stack_networks else '' }}"
|
||||||
|
{% endif %}
|
||||||
configSyncPeriod: {{ kube_proxy_config_sync_period }}
|
configSyncPeriod: {{ kube_proxy_config_sync_period }}
|
||||||
conntrack:
|
conntrack:
|
||||||
maxPerCore: {{ kube_proxy_conntrack_max_per_core }}
|
maxPerCore: {{ kube_proxy_conntrack_max_per_core }}
|
||||||
|
|
Loading…
Reference in a new issue