From 70c4d0450963760b012deb0662b6564cd6aca75a Mon Sep 17 00:00:00 2001 From: RomainMou <58464216+RomainMou@users.noreply.github.com> Date: Thu, 21 Sep 2023 17:16:56 +0200 Subject: [PATCH] Fix etcdctl.sh TLS file path when not using kubeadm. --- roles/etcdctl_etcdutl/templates/etcdctl.sh.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/etcdctl_etcdutl/templates/etcdctl.sh.j2 b/roles/etcdctl_etcdutl/templates/etcdctl.sh.j2 index 71578fa0bba..e4ddfec8605 100644 --- a/roles/etcdctl_etcdutl/templates/etcdctl.sh.j2 +++ b/roles/etcdctl_etcdutl/templates/etcdctl.sh.j2 @@ -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 "$@" - {% endif %} \ No newline at end of file + --cacert {{ etcd_cert_dir }}/ca.pem \ + --cert {{ etcd_cert_dir }}/admin-{{ inventory_hostname }}.pem \ + --key {{ etcd_cert_dir }}/admin-{{ inventory_hostname }}-key.pem "$@" +{% endif %}