Browse Source

add the loadbalancer address to ssl certs

pull/22/head
Smaine Kahlouch 9 years ago
parent
commit
af9b945874
1 changed files with 2 additions and 2 deletions
  1. 4
      roles/kubernetes/node/templates/openssl.conf.j2

4
roles/kubernetes/node/templates/openssl.conf.j2

@ -15,7 +15,7 @@ IP.{{ loop.index }} = {{ hostvars[host]['ip'] | default(hostvars[host]['ansible_
{% endfor %} {% endfor %}
{% set idx = groups['kube-master'] | length | int + 1 %} {% set idx = groups['kube-master'] | length | int + 1 %}
IP.{{ idx | string }} = {{ kube_apiserver_ip }} IP.{{ idx | string }} = {{ kube_apiserver_ip }}
{% if kube_loadbalancer_ip is defined | default('') %}
{% if loadbalancer_address is defined | default('') %}
{% set idx = idx | int + 1 %} {% set idx = idx | int + 1 %}
IP.{{ idx | string }} = {{ kube_loadbalancer }}
IP.{{ idx | string }} = {{ loadbalancer_address }}
{% endif %} {% endif %}
Loading…
Cancel
Save