Fix k8s api endpoint for secondary nodes in control plane mode (#4675)

Change-Id: I1588458b54c52443ad8d0afbd266f77ac0afea67
This commit is contained in:
Matthew Mosesohn 2019-04-29 17:50:24 +03:00 committed by Kubernetes Prow Robot
parent a5b46bfc8c
commit 15eb7db36d

View file

@ -5,7 +5,7 @@
{%- if "127.0.0.1" in kube_apiserver_endpoint or "localhost" in kube_apiserver_endpoint -%} {%- if "127.0.0.1" in kube_apiserver_endpoint or "localhost" in kube_apiserver_endpoint -%}
{{ first_kube_master }}:{{ kube_apiserver_port }} {{ first_kube_master }}:{{ kube_apiserver_port }}
{%- else -%} {%- else -%}
{{ kube_apiserver_endpoint }} {{ kube_apiserver_endpoint | regex_replace('https://', '')}}
{%- endif %} {%- endif %}
tags: tags:
- facts - facts