Skip to content

Instantly share code, notes, and snippets.

@bborysenko
Last active December 29, 2017 14:22
Show Gist options
  • Select an option

  • Save bborysenko/b0c582fcd8258b4c5714f5dec6f51c2c to your computer and use it in GitHub Desktop.

Select an option

Save bborysenko/b0c582fcd8258b4c5714f5dec6f51c2c to your computer and use it in GitHub Desktop.
Kubernetes Development Environment with Minikube
#!/usr/bin/env bash
# This script is meant for quick & easy install via:
# $ curl -fsSL https://gist.githubusercontent.com/bborysenko/b0c582fcd8258b4c5714f5dec6f51c2c/raw/macOS.sh -o macOS.sh
# $ bash macOS.sh
function install() {
brew install kubernetes-cli
brew cask install minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit
chmod +x docker-machine-driver-hyperkit
sudo mv docker-machine-driver-hyperkit /usr/local/bin/
sudo chown root:wheel /usr/local/bin/docker-machine-driver-hyperkit
sudo chmod u+s /usr/local/bin/docker-machine-driver-hyperkit
}
function configure() {
minikube config set vm-driver hyperkit
}
function start() {
minikube start
}
function uninstall() {
brew cask uninstall minikube
brew uninstal kubernetes-cli
rm -f /usr/local/bin/docker-machine-driver-hyperkit
rm -rf ~/.minikube ~/.kube
}
install
configure
start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment