kubernetes KinD minikube - ghdrako/doc_snipets GitHub Wiki
- https://kind.sigs.k8s.io/
- https://github.com/salaboy/platforms-on-k8s/tree/main/chapter-2#creating-a-local-cluster-with-kubernetes-kind
- https://kind.sigs.k8s.io/docs/user/quick-start/#settings-for-docker-desktop
- https://minikube.sigs.k8s.io/docs/start/
kind runs a local Kubernetes cluster by using Docker containers as “nodes”. kind uses the node-image to run Kubernetes artifacts, such as kubeadm or kubelet. The node-image in turn is built off the base-image, which installs all the dependencies needed for Docker and Kubernetes to run in a container.
- Docker (Desktop)
- Go
- Kubectl (installed through Docker Desktop)
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install docker-desktop -y
choco install golang -y
shutdown -r
choco install kind -y
wsl --terminate <distro>
wsl --list --verbose
docker system prune
``
kind create cluster kind create cluster --name kind-2
List clusters
kind get clusters
Change context
kubectl cluster-info --context kind-kind kubectl cluster-info --context kind-kind-2
Deleting a Cluster
kind delete cluster --name
docker build -t my-custom-image:unique-tag ./my-image-dir kind load docker-image my-custom-image:unique-tag kubectl apply -f my-manifest-using-my-image:unique-tag
#### Configuring Your kind Cluster
kind create cluster --config kind-example-config.yaml
Multi-node cluster:
kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes:
- role: control-plane
- role: worker
- role: worker
### Minikube
* https://github.com/kubernetes/minikube
* https://minikube.sigs.k8s.io/docs/start/
$ minikube start