mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-16 09:48:57 +03:00
VTWO-14496 : continue configuring machine
This commit is contained in:
18
scripts/download_etcd_binaries
Executable file
18
scripts/download_etcd_binaries
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ETCD3_RELEASE_VERSION=$1
|
||||
OUTPUT_DIR=$(realpath "$2")
|
||||
|
||||
tmp_dir=$(mktemp -d)
|
||||
|
||||
pushd "$tmp_dir" &> /dev/null
|
||||
|
||||
curl -sL "https://github.com/etcd-io/etcd/releases/download/$ETCD3_RELEASE_VERSION/etcd-$ETCD3_RELEASE_VERSION-linux-arm64.tar.gz" | tar -zxf -
|
||||
|
||||
mkdir -p $OUTPUT_DIR
|
||||
mv etcd-$ETCD3_RELEASE_VERSION-linux-arm64/etcd $OUTPUT_DIR/
|
||||
mv etcd-$ETCD3_RELEASE_VERSION-linux-arm64/etcdctl $OUTPUT_DIR/
|
||||
|
||||
popd &> /dev/null
|
||||
|
||||
rm -rf $tmp_dir
|
||||
Reference in New Issue
Block a user