Added a fix in openssl.conf template to check if IP of loadbalncer is available or not.

pull/2548/head
Kuldip Madnani 2018-03-28 16:24:11 -05:00 committed by Madnani, Kuldip (km007d)
parent ef7f5edbb3
commit 9ebbf1c3cd
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ IP.{{ 2 * loop.index }} = {{ hostvars[host]['ip'] | default(hostvars[host]['ansi
{% endfor %}
{% set idx = groups['kube-master'] | length | int * 2 + 1 %}
IP.{{ idx }} = {{ kube_apiserver_ip }}
{% if loadbalancer_apiserver is defined %}
{% if loadbalancer_apiserver is defined and loadbalancer_apiserver.address is defined %}
IP.{{ idx + 1 }} = {{ loadbalancer_apiserver.address }}
{% set idx = idx + 1 %}
{% endif %}