mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Fix ipvs by kubeadm v1alpha1
This commit is contained in:
@@ -23,10 +23,16 @@ kubernetesVersion: {{ kube_version }}
|
|||||||
{% if cloud_provider is defined and cloud_provider not in ["gce", "oci"] %}
|
{% if cloud_provider is defined and cloud_provider not in ["gce", "oci"] %}
|
||||||
cloudProvider: {{ cloud_provider }}
|
cloudProvider: {{ cloud_provider }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if kube_proxy_mode == 'ipvs' %}
|
||||||
kubeProxy:
|
kubeProxy:
|
||||||
config:
|
config:
|
||||||
{% if kube_proxy_mode == 'ipvs' and kube_version | version_compare('v1.10', '<') %}
|
{% if kube_version | version_compare('v1.10', '<') %}
|
||||||
featureGates: SupportIPVSProxyMode=true
|
featureGates: SupportIPVSProxyMode=true
|
||||||
|
{% endif %}
|
||||||
|
{% if kube_version | version_compare('v1.10', '>=') %}
|
||||||
|
featureGates:
|
||||||
|
SupportIPVSProxyMode: true
|
||||||
|
{% endif %}
|
||||||
mode: ipvs
|
mode: ipvs
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if kube_proxy_nodeport_addresses %}
|
{% if kube_proxy_nodeport_addresses %}
|
||||||
|
|||||||
Reference in New Issue
Block a user