mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-08 02:58:29 +03:00
install etcdctl to host when etcd deployment type is kubeadm (#6857)
* create a wrapper script with pki options * supports all kubespray managed container engines Co-authored-by: Hans Feldt <hafe@users.noreply.github.com>
This commit is contained in:
8
roles/etcdctl/templates/etcdctl.sh.j2
Normal file
8
roles/etcdctl/templates/etcdctl.sh.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
# {{ ansible_managed }}
|
||||
# example invocation: etcdctl.sh get --keys-only --from-key ""
|
||||
|
||||
etcdctl \
|
||||
--cacert {{ kube_cert_dir }}/etcd/ca.crt \
|
||||
--cert {{ kube_cert_dir }}/etcd/server.crt \
|
||||
--key {{ kube_cert_dir }}/etcd/server.key "$@"
|
||||
Reference in New Issue
Block a user