Browse Source

Add Load Balancer IP to API servers SANs (#4775)

- Add loadbalancer_apiserver.address to apiserver_sans
pull/4753/merge
Florent Monbillard 5 years ago
committed by Kubernetes Prow Robot
parent
commit
8e28ba38d2
1 changed files with 2 additions and 1 deletions
  1. 3
      roles/kubernetes/master/tasks/kubeadm-setup.yml

3
roles/kubernetes/master/tasks/kubeadm-setup.yml

@ -55,7 +55,7 @@
- name: kubeadm | aggregate all SANs
set_fact:
apiserver_sans: "{{ (sans_base + groups['kube-master'] + sans_lb + sans_supp + sans_access_ip + sans_ip + sans_address) | unique }}"
apiserver_sans: "{{ (sans_base + groups['kube-master'] + sans_lb + sans_lb_ip + sans_supp + sans_access_ip + sans_ip + sans_address) | unique }}"
vars:
sans_base:
- "kubernetes"
@ -66,6 +66,7 @@
- "localhost"
- "127.0.0.1"
sans_lb: "{{ [apiserver_loadbalancer_domain_name] if apiserver_loadbalancer_domain_name is defined else [] }}"
sans_lb_ip: "{{ [loadbalancer_apiserver.address] if loadbalancer_apiserver is defined and loadbalancer_apiserver.address is defined else [] }}"
sans_supp: "{{ supplementary_addresses_in_ssl_keys if supplementary_addresses_in_ssl_keys is defined else [] }}"
sans_access_ip: "{{ groups['kube-master'] | map('extract', hostvars, 'access_ip') | list | select('defined') | list }}"
sans_ip: "{{ groups['kube-master'] | map('extract', hostvars, 'ip') | list | select('defined') | list }}"

Loading…
Cancel
Save