Kind в linux
Делаю:
2024.12.21
https://kind.sigs.k8s.io/docs/user/quick-start/#installing-from-release-binaries
$ [ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.26.0/kind-linux-amd64
$ chmod +x ./kind
$ sudo mv ./kind /usr/local/bin/kind
$ kind --version
kind version 0.26.0
Download Cluster Configurations and Create a 3 Node Kubernetes Cluster as
$ cd ~/tmp
$ git clone https://github.com/initcron/k8s-code.git
$ cd k8s-code/helper/kind/
$ kind create cluster --config kind-three-node-cluster.yaml
Validate
$ kind get clusters
$ kubectl cluster-info --context kind-kind
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
kind-control-plane Ready control-plane 91s v1.32.0
kind-worker Ready <none> 81s v1.32.0
kind-worker2 Ready <none> 81s v1.32.0
Restarting and Resetting the Cluster
// $ docker stop kind-control-plane kind-worker kind-worker2
// $ docker start kind-control-plane kind-worker kind-worker2
$ kind get clusters
kind
// Delete cluster
// $ kind delete cluster --name kind