Skip to content

Instantly share code, notes, and snippets.

@dwamara
Forked from massenz/minikube-install.sh
Created December 6, 2018 16:08
Show Gist options
  • Save dwamara/56873ca99270bfb158b249c6ab82024e to your computer and use it in GitHub Desktop.
Save dwamara/56873ca99270bfb158b249c6ab82024e to your computer and use it in GitHub Desktop.
Kubernetes Minikube install on MacOS
#!/bin/bash
#
# Installs minikube on MacOS
# See: https://github.com/kubernetes/minikube/releases
declare -r VERSION=${1:-}
if [[ -z ${VERSION} ]]; then
echo "Please specify a version"
exit 1
fi
curl -Lo ${HOME}/Downloads/minikube \
https://storage.googleapis.com/minikube/releases/v${VERSION}/minikube-darwin-amd64
sudo mv ${HOME}/Downloads/minikube ${HOME}/local/bin/
chmod +x ${HOME}/local/bin/minikube
echo "Minikube installed at $(which minikube)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment