- kind 설치하기
- kind 멀티노드 설치
kind 설치하기
brew install kind
brew install kubectl
kind create cluster --name k8s-cluster
kubectl cluster-info --context k8s-cluster
kind 멀티노드 설치
cat > kind-config.yaml <<EOF
# three node (two workers) cluster config
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
EOF
kind create cluster --name k8s-playground --config kind-config.yaml
kind get clusters
kind get kubeconfig --name k8s-cluster
% kubectl cluster-info
Kubernetes control plane is running at https://127.0.0.1:49388
CoreDNS is running at https://127.0.0.1:49388/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
% kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
* kind-k8s-cluster kind-k8s-cluster kind-k8s-cluster
% kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 4m42s
% kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8s-cluster-control-plane Ready control-plane 5m v1.32.0
% kubectl get pod
No resources found in default namespace.
% kubectl get namespaces
NAME STATUS AGE
default Active 5m45s
kube-node-lease Active 5m45s
kube-public Active 5m45s
kube-system Active 5m45s
local-path-storage Active 5m41s