Fix etcdctl.sh TLS file path when not using kubeadm. (#10467)

pull/10480/head
Romain 2023-09-25 04:50:57 +02:00 committed by GitHub
parent 7919a47165
commit 2c132dccba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ etcdctl \
--cert {{ kube_cert_dir }}/etcd/server.crt \
--key {{ kube_cert_dir }}/etcd/server.key "$@"
{% else %}
--cacert {{ etcd_cert_dir }}/etcd/ca.crt \
--cert {{ etcd_cert_dir }}/etcd/server.crt \
--key {{ etcd_cert_dir }}/etcd/server.key "$@"
--cacert {{ etcd_cert_dir }}/ca.pem \
--cert {{ etcd_cert_dir }}/admin-{{ inventory_hostname }}.pem \
--key {{ etcd_cert_dir }}/admin-{{ inventory_hostname }}-key.pem "$@"
{% endif %}