From 018b5039e78691d5fbda581f47ff307bad30e0e6 Mon Sep 17 00:00:00 2001 From: John Ko Date: Thu, 20 Jul 2017 10:27:05 -0400 Subject: [PATCH] set loadbalancer_apiserver_localhost default true to match this https://github.com/kubernetes-incubator/kubespray/blob/master/roles/kubernetes/node/tasks/main.yml#L20 and the documented behaviour in HA docs related to #1456 @rsmitty --- roles/kubernetes/preinstall/tasks/set_facts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/preinstall/tasks/set_facts.yml b/roles/kubernetes/preinstall/tasks/set_facts.yml index 03057829d..b154c96f8 100644 --- a/roles/kubernetes/preinstall/tasks/set_facts.yml +++ b/roles/kubernetes/preinstall/tasks/set_facts.yml @@ -20,7 +20,7 @@ - set_fact: kube_apiserver_endpoint: |- - {% if not is_kube_master and loadbalancer_apiserver_localhost|default(false) -%} + {% if not is_kube_master and loadbalancer_apiserver_localhost|default(true) -%} https://localhost:{{ nginx_kube_apiserver_port|default(kube_apiserver_port) }} {%- elif is_kube_master -%} http://127.0.0.1:{{ kube_apiserver_insecure_port }}