diff --git a/roles/kubernetes/client/tasks/main.yml b/roles/kubernetes/client/tasks/main.yml index 67b2da325..4da9ad30a 100644 --- a/roles/kubernetes/client/tasks/main.yml +++ b/roles/kubernetes/client/tasks/main.yml @@ -5,7 +5,7 @@ {%- if loadbalancer_apiserver is defined and loadbalancer_apiserver.port is defined -%} https://{{ apiserver_loadbalancer_domain_name }}:{{ loadbalancer_apiserver.port|default(kube_apiserver_port) }} {%- else -%} - https://{{ kube_apiserver_address }}:{{ kube_apiserver_port }} + https://{{ kube_apiserver_access_address }}:{{ kube_apiserver_port }} {%- endif -%} tags: - facts