Fix: added string to bool conversion for use_localhost_as_kube api load balancer (#7324)

(cherry picked from commit 15f1b19136)
This commit is contained in:
stress-t 2021-03-01 22:53:36 +03:00 committed by Kubernetes Prow Robot
parent a02e9206fe
commit 5563ed8084

View file

@ -442,7 +442,7 @@ apiserver_loadbalancer_domain_name: "lb-apiserver.kubernetes.local"
kube_apiserver_global_endpoint: |-
{% if loadbalancer_apiserver is defined -%}
https://{{ apiserver_loadbalancer_domain_name }}:{{ loadbalancer_apiserver.port|default(kube_apiserver_port) }}
{%- elif use_localhost_as_kubeapi_loadbalancer is defined -%}
{%- elif use_localhost_as_kubeapi_loadbalancer|default(False)|bool -%}
https://127.0.0.1:{{ kube_apiserver_port }}
{%- else -%}
https://{{ first_kube_master }}:{{ kube_apiserver_port }}