mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-11 10:00:03 -03:30
Fix k8s api endpoint for secondary nodes in control plane mode (#4675)
Change-Id: I1588458b54c52443ad8d0afbd266f77ac0afea67
This commit is contained in:
parent
a5b46bfc8c
commit
15eb7db36d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user