From 092f8038d81181198341cbce70350080a193d152 Mon Sep 17 00:00:00 2001 From: Anton Nerozya Date: Wed, 26 Jul 2017 15:17:51 +0200 Subject: [PATCH] FIX: we don't need https for localhost connection --- 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 b154c96f8..f86805463 100644 --- a/roles/kubernetes/preinstall/tasks/set_facts.yml +++ b/roles/kubernetes/preinstall/tasks/set_facts.yml @@ -21,7 +21,7 @@ - set_fact: kube_apiserver_endpoint: |- {% if not is_kube_master and loadbalancer_apiserver_localhost|default(true) -%} - https://localhost:{{ nginx_kube_apiserver_port|default(kube_apiserver_port) }} + http://localhost:{{ nginx_kube_apiserver_port|default(kube_apiserver_port) }} {%- elif is_kube_master -%} http://127.0.0.1:{{ kube_apiserver_insecure_port }} {%- else -%}