Created
September 29, 2018 21:37
-
-
Save massenz/3e12d8a7a93ba8781ecc6717e9e1af3f to your computer and use it in GitHub Desktop.
Kubernetes Minikube install on MacOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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