Merge pull request #904 from galthaus/nginx-port-config

Add nginx local balancer port configuration variable
This commit is contained in:
Matthew Mosesohn
2017-01-19 18:31:57 +03:00
committed by GitHub
4 changed files with 20 additions and 11 deletions

View File

@@ -10,7 +10,7 @@
- set_fact:
kube_apiserver_endpoint: |-
{% if not is_kube_master and loadbalancer_apiserver_localhost -%}
https://localhost:{{ kube_apiserver_port }}
https://localhost:{{ nginx_kube_apiserver_port }}
{%- elif is_kube_master and loadbalancer_apiserver is not defined -%}
http://127.0.0.1:{{ kube_apiserver_insecure_port }}
{%- else -%}