Skip to content

Instantly share code, notes, and snippets.

@massenz
Created September 29, 2018 21:37
Show Gist options
  • Save massenz/3e12d8a7a93ba8781ecc6717e9e1af3f to your computer and use it in GitHub Desktop.
Save massenz/3e12d8a7a93ba8781ecc6717e9e1af3f 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