Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jainnitin
Last active September 11, 2017 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jainnitin/80668c55b410763cfbda5a1a34edb7ed to your computer and use it in GitHub Desktop.
Save jainnitin/80668c55b410763cfbda5a1a34edb7ed to your computer and use it in GitHub Desktop.
Setup Minikube on Mac OSX Sierra
#!/bin/bash
# echo on; abort on errors
set -xe
# Install xhyve driver
if brew ls --versions docker-machine-driver-xhyve > /dev/null; then
echo docker-machine-driver-xhyve is already installed
else
brew install docker-machine-driver-xhyve --stable
sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
fi
# Install minikube
if brew cask list --versions minikube > /dev/null; then
echo minikube is already installed
else
brew cask install minikube
fi
# Install kubectl
if brew ls --versions kubectl > /dev/null; then
echo kubectl is already installed
else
brew install kubectl
fi
# Clear existing minikube installation
if [ -d "~/.minikube" ]; then
rm -rf ~/.minikube
fi
# Start minicube
minikube start --memory=2048 --vm-driver=xhyve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment