From af9b9458747b712a30e36364e2b4f81b54e30be2 Mon Sep 17 00:00:00 2001 From: Smaine Kahlouch Date: Sat, 12 Dec 2015 19:09:19 +0100 Subject: [PATCH] add the loadbalancer address to ssl certs --- roles/kubernetes/node/templates/openssl.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/kubernetes/node/templates/openssl.conf.j2 b/roles/kubernetes/node/templates/openssl.conf.j2 index 05015651f..ce2b88e9c 100644 --- a/roles/kubernetes/node/templates/openssl.conf.j2 +++ b/roles/kubernetes/node/templates/openssl.conf.j2 @@ -15,7 +15,7 @@ IP.{{ loop.index }} = {{ hostvars[host]['ip'] | default(hostvars[host]['ansible_ {% endfor %} {% set idx = groups['kube-master'] | length | int + 1 %} IP.{{ idx | string }} = {{ kube_apiserver_ip }} -{% if kube_loadbalancer_ip is defined | default('') %} +{% if loadbalancer_address is defined | default('') %} {% set idx = idx | int + 1 %} -IP.{{ idx | string }} = {{ kube_loadbalancer }} +IP.{{ idx | string }} = {{ loadbalancer_address }} {% endif %}