Fix k8s api endpoint for secondary nodes in control plane mode (#4675)
Change-Id: I1588458b54c52443ad8d0afbd266f77ac0afea67
This commit is contained in:
parent
a5b46bfc8c
commit
15eb7db36d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue