"Kind create cluster"의 두 판 사이의 차이

19번째 줄: 19번째 줄:


Not sure what to do next? 😅  Check out https://kind.sigs.k8s.io/docs/user/quick-start/
Not sure what to do next? 😅  Check out https://kind.sigs.k8s.io/docs/user/quick-start/
</syntaxhighlight>
<syntaxhighlight lang='console'>
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'.
</syntaxhighlight>
<syntaxhighlight lang='console'>
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'.
</syntaxhighlight>
<syntaxhighlight lang='console'>
root@debian:~# kubectl get no
NAME                STATUS  ROLES          AGE    VERSION
kind-control-plane  Ready    control-plane  2m11s  v1.25.3
</syntaxhighlight>
</syntaxhighlight>



2023년 1월 22일 (일) 13:44 판

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

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 }}