From b109f52dab2b03e10d40460303dcfdc91828dae4 Mon Sep 17 00:00:00 2001 From: karbyshevds Date: Mon, 3 Dec 2018 16:04:03 +0300 Subject: [PATCH] Set configure-cloud-routes=false as default if no network plugin is used (#3788) * Set configure-cloud-routes=false as default if no network plugin is used As configure-cloud-routes default value is `true`, so it need to be set to `false` when not required to avoid error messages like: "Couldn't reconcile node routes: error listing routes: unable to find route table for AWS cluster" on, for example, AWS installations that don't use cloud native routing. * Update kube-controller-manager.manifest.j2 remove extra spaces --- .../templates/manifests/kube-controller-manager.manifest.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 index 2511c4d7e..8046b9b94 100644 --- a/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 +++ b/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 @@ -54,6 +54,8 @@ spec: {% endif %} {% if kube_network_plugin is defined and kube_network_plugin == 'cloud' %} - --configure-cloud-routes=true +{% else %} + - --configure-cloud-routes=false {% endif %} {% if kube_network_plugin is defined and kube_network_plugin in ["cloud", "flannel", "canal", "cilium", "kube-router"] %} - --allocate-node-cidrs=true