Files
matchbox/scripts/get-bootkube
Dalton Hubble b84e92a05a examples: Update self-hosted Kubernetes to v1.5.3
* Use kubernetes-incubator/bootkube v0.3.9
2017-03-03 15:33:59 -08:00

17 lines
387 B
Bash
Executable File

#!/usr/bin/env bash
# USAGE: ./get-bootkube bin
# Get the bootkube tool
set -eu
DEST=${1:-"bin"}
VERSION="v0.3.9"
URL="https://github.com/kubernetes-incubator/bootkube/releases/download/${VERSION}/bootkube.tar.gz"
if [[ ! -f $DEST/bootkube ]]; then
mkdir -p $DEST
curl -L -O ${URL}
tar -C $DEST --strip-components=2 -xzf bootkube.tar.gz bin/linux/bootkube
chmod +x ${DEST}
fi