mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 18:17:47 +03:00
Add possibility to insert more ip adresses in certificates (#1678)
* Add possibility to insert more ip adresses in certificates * Add newline at end of files * Move supp ip parameters to k8s-cluster group file * Add supplementary addresses in kubeadm master role * Improve openssl indexes
This commit is contained in:
committed by
Matthew Mosesohn
parent
688e589e0c
commit
356515222a
@@ -54,8 +54,12 @@
|
||||
{%- if hostvars[host]['access_ip'] is defined %}{{ hostvars[host]['access_ip'] }}{% endif %}
|
||||
{{ hostvars[host]['ip'] | default(hostvars[host]['ansible_default_ipv4']['address']) }}
|
||||
{%- endfor %}
|
||||
tags:
|
||||
- facts
|
||||
{% if supplementary_addresses_in_ssl_keys is defined %}
|
||||
{% for addr in supplementary_addresses_in_ssl_keys %}
|
||||
{{ addr }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
tags: facts
|
||||
|
||||
- name: kubeadm | Copy etcd cert dir under k8s cert dir
|
||||
command: "cp -TR {{ etcd_cert_dir }} {{ kube_config_dir }}/ssl/etcd"
|
||||
|
||||
Reference in New Issue
Block a user