Instantly share code, notes, and snippets.

Embed
What would you like to do?
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