Skip to content
Snippets Groups Projects
Commit af9b9458 authored by Smaine Kahlouch's avatar Smaine Kahlouch
Browse files

add the loadbalancer address to ssl certs

parent 3cbcd6f1
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ IP.{{ loop.index }} = {{ hostvars[host]['ip'] | default(hostvars[host]['ansible_ ...@@ -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 %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment