Skip to content

Instantly share code, notes, and snippets.

@sanjid133
Last active March 23, 2021 09:33
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save sanjid133/fffaae1c7deb7c3d6c5f6bae549d6380 to your computer and use it in GitHub Desktop.
Save sanjid133/fffaae1c7deb7c3d6c5f6bae549d6380 to your computer and use it in GitHub Desktop.
Install etcd On Ubuntu 16.04/18.04
#!/bin/bash
ETCD_VERSION=${ETCD_VERSION:-v3.3.1}
curl -L https://github.com/coreos/etcd/releases/download/$ETCD_VERSION/etcd-$ETCD_VERSION-linux-amd64.tar.gz -o etcd-$ETCD_VERSION-linux-amd64.tar.gz
tar xzvf etcd-$ETCD_VERSION-linux-amd64.tar.gz
rm etcd-$ETCD_VERSION-linux-amd64.tar.gz
cd etcd-$ETCD_VERSION-linux-amd64
sudo cp etcd /usr/local/bin/
sudo cp etcdctl /usr/local/bin/
rm -rf etcd-$ETCD_VERSION-linux-amd64
etcdctl --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment