add kube-masters to SSL certificate
parent
aaa3f1c491
commit
d9641771ed
|
@ -11,7 +11,11 @@ DNS.1 = kubernetes
|
||||||
DNS.2 = kubernetes.default
|
DNS.2 = kubernetes.default
|
||||||
DNS.3 = kubernetes.default.svc
|
DNS.3 = kubernetes.default.svc
|
||||||
DNS.4 = kubernetes.default.svc.{{ dns_domain }}
|
DNS.4 = kubernetes.default.svc.{{ dns_domain }}
|
||||||
|
{% for host in groups['kube-master'] %}
|
||||||
|
DNS.{{ 4 + loop.index }} = {{ host }}
|
||||||
|
{% endfor %}
|
||||||
{% if loadbalancer_apiserver is defined and apiserver_loadbalancer_domain_name is defined %}
|
{% if loadbalancer_apiserver is defined and apiserver_loadbalancer_domain_name is defined %}
|
||||||
|
{% set idx = groups['kube-master'] | length | int + 4 %}
|
||||||
DNS.5 = {{ apiserver_loadbalancer_domain_name }}
|
DNS.5 = {{ apiserver_loadbalancer_domain_name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for host in groups['kube-master'] %}
|
{% for host in groups['kube-master'] %}
|
||||||
|
|
Loading…
Reference in New Issue