diff --git a/roles/kubernetes/master/templates/kubeadm-config.v1alpha1.yaml.j2 b/roles/kubernetes/master/templates/kubeadm-config.v1alpha1.yaml.j2 index adc71cd09..2a69f8b4e 100644 --- a/roles/kubernetes/master/templates/kubeadm-config.v1alpha1.yaml.j2 +++ b/roles/kubernetes/master/templates/kubeadm-config.v1alpha1.yaml.j2 @@ -70,6 +70,7 @@ apiServerExtraArgs: kubelet-preferred-address-types: "{{ kubelet_preferred_address_types }}" profiling: "{{ kube_profiling }}" repair-malformed-updates: "false" + enable-aggregator-routing: "{{ kube_api_aggregator_routing }}" {% if kube_api_anonymous_auth is defined and kube_version | version_compare('v1.5', '>=') %} anonymous-auth: "{{ kube_api_anonymous_auth }}" {% endif %} diff --git a/roles/kubernetes/master/templates/kubeadm-config.v1alpha2.yaml.j2 b/roles/kubernetes/master/templates/kubeadm-config.v1alpha2.yaml.j2 index 411a7ac85..9482ed083 100644 --- a/roles/kubernetes/master/templates/kubeadm-config.v1alpha2.yaml.j2 +++ b/roles/kubernetes/master/templates/kubeadm-config.v1alpha2.yaml.j2 @@ -62,6 +62,7 @@ apiServerExtraArgs: kubelet-preferred-address-types: "{{ kubelet_preferred_address_types }}" profiling: "{{ kube_profiling }}" repair-malformed-updates: "false" + enable-aggregator-routing: "{{ kube_api_aggregator_routing }}" {% if kube_api_anonymous_auth is defined and kube_version | version_compare('v1.5', '>=') %} anonymous-auth: "{{ kube_api_anonymous_auth }}" {% endif %}