diff --git a/roles/kubernetes/master/templates/kubeadm-config.v1alpha1.yaml.j2 b/roles/kubernetes/master/templates/kubeadm-config.v1alpha1.yaml.j2 index 237e371d4..37c25c77b 100644 --- a/roles/kubernetes/master/templates/kubeadm-config.v1alpha1.yaml.j2 +++ b/roles/kubernetes/master/templates/kubeadm-config.v1alpha1.yaml.j2 @@ -27,6 +27,9 @@ kubeProxy: config: featureGates: SupportIPVSProxyMode=true mode: ipvs +{% if kube_proxy_nodeport_addresses %} + nodePortAddresses: [{{ kube_proxy_nodeport_addresses_cidr }}] +{% endif %} {% endif %} authorizationModes: {% for mode in authorization_modes %}