mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-02 01:08:54 -03:30
Use node cert for etcd tasks instead of delegating to first etcd (#2386)
For etcdctl commands, use admin cert instead of node because this file doesn't exist on etcd only hosts.
This commit is contained in:
@@ -50,8 +50,8 @@
|
||||
command: |-
|
||||
{{ bin_dir }}/etcdctl \
|
||||
--peers={{ etcd_access_addresses }} \
|
||||
--cert-file {{ etcd_cert_dir }}/node-{{ groups['etcd'][0] }}.pem \
|
||||
--key-file {{ etcd_cert_dir }}/node-{{ groups['etcd'][0] }}-key.pem \
|
||||
--cert-file {{ etcd_cert_dir }}/admin-{{ groups['etcd'][0] }}.pem \
|
||||
--key-file {{ etcd_cert_dir }}/admin-{{ groups['etcd'][0] }}-key.pem \
|
||||
set /calico/bgp/v1/rr_v4/{{ rr_ip }} \
|
||||
'{
|
||||
"ip": "{{ rr_ip }}",
|
||||
|
||||
Reference in New Issue
Block a user