Start and stop local Kubernetes clusters.
- Docker Desktop
- K3D
- MiniKube
kubectl up
will start and initialize a local cluster. kubectl down
will stop local cluster.
Installation:
git clone https://github.com/alexec/kubectl-up.git -o ~/kubectl-up
export PATH=~/kubectl-up:$PATH ;# add to your ~/.bashrc or ~/.zshrc
Install Docker Desktop
Install your local Kubernetes provider.
Option 1 - Kubernetes on Docker Desktop.
Option 3 - K3D
brew install k3d
Option 3 - Minikube
brew install minikube
Usage:
kubectl up docker-desktop ;# default
kubectl up k3d
kubectl up minikube
kubectl down