Kind в linux


Делаю:
2025.04.27


https://kind.sigs.k8s.io/docs/user/quick-start/#installing-from-release-binaries


// Если ошибка
// curl: (35) error:0A00010B:SSL routines::wrong version number
// Качай по http, а не по https
$ [ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.27.0/kind-linux-amd64
$ chmod +x ./kind
$ sudo mv ./kind /usr/local/bin/kind


$ kind --version
kind version 0.27.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   NotReady   control-plane   20s   v1.32.2
kind-worker          NotReady   <none>          9s    v1.32.2
kind-worker2         NotReady   <none>          9s    v1.32.2


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