Browse Source

Merge pull request #1034 from rutsky/fix-openssl-lb-index

fix load balancer DNS name index evaluation in openssl.conf
pull/1061/head
Matthew Mosesohn 7 years ago
committed by GitHub
parent
commit
042d094ce7
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes/secrets/templates/openssl.conf.j2

2
roles/kubernetes/secrets/templates/openssl.conf.j2

@ -16,7 +16,7 @@ DNS.5 = localhost
DNS.{{ 5 + loop.index }} = {{ host }} DNS.{{ 5 + loop.index }} = {{ host }}
{% endfor %} {% 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 + 5 %}
{% set idx = groups['kube-master'] | length | int + 5 + 1 %}
DNS.{{ idx | string }} = {{ apiserver_loadbalancer_domain_name }} DNS.{{ idx | string }} = {{ apiserver_loadbalancer_domain_name }}
{% endif %} {% endif %}
{% for host in groups['kube-master'] %} {% for host in groups['kube-master'] %}

Loading…
Cancel
Save