Skip to content

Commit

Permalink
Fix: added string to bool conversion for use_localhost_as_kube api lo…
Browse files Browse the repository at this point in the history
…ad balancer (kubernetes-sigs#7324)
  • Loading branch information
stress-t authored Mar 1, 2021
1 parent 154fa45 commit 15f1b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubespray-defaults/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,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 }}
Expand Down

0 comments on commit 15f1b19

Please sign in to comment.