Browse Source
Merge pull request #2214 from woopstar/patch-3
Loadbalancer Apiserver Address is missing
pull/2258/head
Antoine Legrand
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
roles/kubernetes/secrets/templates/openssl.conf.j2
|
@ -25,6 +25,10 @@ IP.{{ 2 * loop.index }} = {{ hostvars[host]['ip'] | default(hostvars[host]['ansi |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% set idx = groups['kube-master'] | length | int * 2 + 1 %} |
|
|
{% set idx = groups['kube-master'] | length | int * 2 + 1 %} |
|
|
IP.{{ idx }} = {{ kube_apiserver_ip }} |
|
|
IP.{{ idx }} = {{ kube_apiserver_ip }} |
|
|
|
|
|
{% if loadbalancer_apiserver is defined %} |
|
|
|
|
|
IP.{{ idx + 1 }} = {{ loadbalancer_apiserver.address }} |
|
|
|
|
|
{% set idx = idx + 1 %} |
|
|
|
|
|
{% endif %} |
|
|
IP.{{ idx + 1 }} = 127.0.0.1 |
|
|
IP.{{ idx + 1 }} = 127.0.0.1 |
|
|
{% if supplementary_addresses_in_ssl_keys is defined %} |
|
|
{% if supplementary_addresses_in_ssl_keys is defined %} |
|
|
{% set is = idx + 1 %} |
|
|
{% set is = idx + 1 %} |
|
|