Add ipvs support for kubeadm 1.10 or later.

pull/3061/head
Takashi Okamoto 2018-08-04 04:08:01 +00:00
parent 6849788ebc
commit bdbfa4d403
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,12 @@ kubeProxy:
{% if kube_proxy_mode == 'ipvs' and kube_version | version_compare('v1.10', '<') %}
featureGates: SupportIPVSProxyMode=true
mode: ipvs
{% elif kube_proxy_mode == 'ipvs' %}
kubeProxy:
config:
featureGates:
SupportIPVSProxyMode: true
mode: ipvs
{% endif %}
{% if kube_proxy_nodeport_addresses %}
nodePortAddresses: [{{ kube_proxy_nodeport_addresses_cidr }}]