Start and stop local Kubernetes clusters.
- Docker Desktop
- MiniKube
kubectl-up
will start and initialize a local cluster. kubectl-down
will stop local cluster.
Installation:
git clone https://github.com/saurbhc/kubectl-up.git ~/kubectl-up
export PATH=~/kubectl-up:$PATH ;# add to your ~/.bash_profile
Install Docker Desktop
Install your local Kubernetes provider.
-
Minikube
- via brew
brew install minikube
- via curl
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-arm64 sudo install minikube-darwin-arm64 /usr/local/bin/minikube
- via brew
Usage:
kubectl-up
-
Alternatives:
kubectl-up docker-desktop-and-minikube ;# default
kubectl-up docker-desktop
kubectl-up minikube
kubectl-down