This message was deleted.
# rke2
a
This message was deleted.
g
No, but here’s a script that should work on most OSes.
Copy code
#!/bin/bash
ETCD_VER=v3.5.4

# choose either URL
GOOGLE_URL=<https://storage.googleapis.com/etcd>
GITHUB_URL=<https://github.com/etcd-io/etcd/releases/download>
DOWNLOAD_URL=${GOOGLE_URL}

rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
rm -rf /tmp/etcd-download-test && mkdir -p /tmp/etcd-download-test

curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd-download-test --strip-components=1
rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz

/tmp/etcd-download-test/etcd --version
/tmp/etcd-download-test/etcdctl version
/tmp/etcd-download-test/etcdutl version
Just update the etcd version at the top to whatever you want to use, and then copy etcdctl binary from tmp to a location in your PATH
Also, you can exec into an etcd pod and use etcdctl there
b
Thanks!
Do you have any idea why we get DeadlineExceeded errors when trying to query etcd? Im sure it can be caused by numerous possibilities
ill take it to the main channel - thanks for the script!
146 Views