kind create cluster

1 개요[ | ]

kind create cluster

2 성공[ | ]

root@debian:~# kind create cluster
Creating cluster "kind" ...
 ✓ Ensuring node image (kindest/node:v1.25.3) 🖼
 ✓ Preparing nodes 📦
 ✓ Writing configuration 📜
 ✓ Starting control-plane 🕹️
 ✓ Installing CNI 🔌
 ✓ Installing StorageClass 💾
Set kubectl context to "kind-kind"
You can now use your cluster with:

kubectl cluster-info --context kind-kind

Not sure what to do next? 😅  Check out https://kind.sigs.k8s.io/docs/user/quick-start/
root@debian:~# kubectl cluster-info
Kubernetes control plane is running at https://127.0.0.1:44127
CoreDNS is running at https://127.0.0.1:44127/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
root@debian:~# kubectl cluster-info
Kubernetes control plane is running at https://127.0.0.1:44127
CoreDNS is running at https://127.0.0.1:44127/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
root@debian:~# kubectl get no
NAME                 STATUS   ROLES           AGE     VERSION
kind-control-plane   Ready    control-plane   2m11s   v1.25.3
root@debian:~# kubectl get pod -A
NAMESPACE            NAME                                         READY   STATUS    RESTARTS   AGE
kube-system          coredns-565d847f94-g94nb                     1/1     Running   0          3m24s
kube-system          coredns-565d847f94-zhlng                     1/1     Running   0          3m24s
kube-system          etcd-kind-control-plane                      1/1     Running   0          3m39s
kube-system          kindnet-m6tpd                                1/1     Running   0          3m24s
kube-system          kube-apiserver-kind-control-plane            1/1     Running   0          3m39s
kube-system          kube-controller-manager-kind-control-plane   1/1     Running   0          3m39s
kube-system          kube-proxy-t85hf                             1/1     Running   0          3m24s
kube-system          kube-scheduler-kind-control-plane            1/1     Running   0          3m39s
local-path-storage   local-path-provisioner-684f458cdd-29922      1/1     Running   0          3m24s

3 실패[ | ]

root@debian:~# kind create cluster
ERROR: failed to create cluster: node(s) already exist for a cluster with the name "kind"
root@debian:~# kind create cluster
Creating cluster "kind" ...
 ✓ Ensuring node image (kindest/node:v1.21.1) 🖼
 ✓ Preparing nodes 📦
 ✓ Writing configuration 📜
 ✗ Starting control-plane 🕹️
ERROR: failed to create cluster: failed to init node with kubeadm: command "docker exec --privileged kind-control-plane kubeadm init --skip-phases=preflight --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1
...

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}