From c47f441b137d63a64b72d8384982533345b227e7 Mon Sep 17 00:00:00 2001 From: Xiaodu Date: Fri, 13 Mar 2020 01:40:39 +0800 Subject: [PATCH] fix kube-proxy server address when local apiserver lb is disabled (#5730) refs #5277 As the issue describes, when no external or local load-balanced is used, kube-proxy won't be able to contact apiserver at 127.0.0.1. So the config map should be left as is. --- roles/kubernetes/kubeadm/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes/kubeadm/tasks/main.yml b/roles/kubernetes/kubeadm/tasks/main.yml index 52ec185ba..7851973ae 100644 --- a/roles/kubernetes/kubeadm/tasks/main.yml +++ b/roles/kubernetes/kubeadm/tasks/main.yml @@ -116,6 +116,7 @@ - kubeadm_config_api_fqdn is not defined - kubeadm_discovery_address != kube_apiserver_endpoint | replace("https://", "") - not kube_proxy_remove + - loadbalancer_apiserver_localhost tags: - kube-proxy