Browse Source
Merge pull request #2548 from kmadnani/fix-openssl-conf
Added a fix in openssl.conf template to check for loadbalancer IP.
pull/2549/head
Chad Swenson
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
roles/kubernetes/secrets/templates/openssl.conf.j2
|
|
@ -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 %} |
|
|
|