← All cheatsheets
$ kind create cluster --name devSpin up local Kubernetes clusters with kind or minikube, load local images, enable add-ons and clean up.
kind
kind create cluster --name devCreate a single-node clusterkind create cluster --name multi --config kind-multinode.yamlCreate a cluster from a config filekind get clustersList kind clusterskind load docker-image myapp:dev --name devLoad a local image into the clusterkind export kubeconfig --name devPoint kubectl at the clusterkind export logs ./kind-logs --name devCollect node logs for debuggingkind delete cluster --name devDelete the clusterminikube
minikube start --cpus=4 --memory=8gStart a cluster with more resourcesminikube start --nodes 3 -p multiStart a 3-node cluster profileminikube statusCheck cluster statusminikube addons listList add-onsminikube addons enable ingressEnable the ingress controllerminikube addons enable metrics-serverEnable kubectl topminikube image load myapp:devLoad a local imageminikube service myapp --urlGet a URL for a serviceminikube tunnelExpose LoadBalancer services locallyminikube dashboardOpen the Kubernetes dashboardminikube sshSSH into the nodeminikube delete --allDelete all clusterskind multi-node config
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:
- containerPort: 80
hostPort: 8080
- role: worker
- role: worker