Kind в linux
Делаю:
2025.06.28
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
$ mkdir -p ~/projects/courses/kubernetes
$ cd ~/projects/courses/kubernetes
$ 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
Визуализировать в UI контейнеры
$ cd ~/projects/courses/kubernetes/
$ git clone https://github.com/schoolofdevops/kube-ops-view
$ kubectl apply -f kube-ops-view/deploy/
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
kube-ops-view-6ffb44dd6c-7qljz 1/1 Running 0 31s
// OK!
http://localhost:32000/
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