Skip to content
Snippets Groups Projects
Unverified Commit db4e2253 authored by Chad Swenson's avatar Chad Swenson Committed by GitHub
Browse files

Merge pull request #2548 from kmadnani/fix-openssl-conf

Added a fix in openssl.conf template to check for loadbalancer IP.
parents ef7f5edb 9ebbf1c3
No related branches found
No related tags found
No related merge requests found
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment