From 15eb7db36d3bbee311152d741e8262204e87a82d Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Mon, 29 Apr 2019 17:50:24 +0300 Subject: [PATCH] Fix k8s api endpoint for secondary nodes in control plane mode (#4675) Change-Id: I1588458b54c52443ad8d0afbd266f77ac0afea67 --- .../kubernetes/master/tasks/kubeadm-secondary-experimental.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/master/tasks/kubeadm-secondary-experimental.yml b/roles/kubernetes/master/tasks/kubeadm-secondary-experimental.yml index 9a3f8fe11..c3afb5c0c 100644 --- a/roles/kubernetes/master/tasks/kubeadm-secondary-experimental.yml +++ b/roles/kubernetes/master/tasks/kubeadm-secondary-experimental.yml @@ -5,7 +5,7 @@ {%- if "127.0.0.1" in kube_apiserver_endpoint or "localhost" in kube_apiserver_endpoint -%} {{ first_kube_master }}:{{ kube_apiserver_port }} {%- else -%} - {{ kube_apiserver_endpoint }} + {{ kube_apiserver_endpoint | regex_replace('https://', '')}} {%- endif %} tags: - facts