$ kubectl cluster-info --context kind-demo Kubernetes control plane is running at https://127.0.0.1:56770 KubeDNS is running at https://127.0.0.1:56770/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
查看集群 demo 中的节点信息:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
$ kubectl get node NAME STATUS ROLES AGE VERSION demo-control-plane Ready control-plane,master 4m46s v1.20.2 $ kubectl get pods -n kube-system NAME READY STATUS RESTARTS AGE coredns-74ff55c5b-9gdc5 1/1 Running 0 6m24s coredns-74ff55c5b-tnb5w 1/1 Running 0 6m24s etcd-demo-control-plane 1/1 Running 0 6m38s kindnet-4fmq9 1/1 Running 0 6m24s kube-apiserver-demo-control-plane 1/1 Running 0 6m38s kube-controller-manager-demo-control-plane 1/1 Running 0 6m38s kube-proxy-6wrdz 1/1 Running 0 6m24s kube-scheduler-demo-control-plane 1/1 Running 0 6m38s
$ kind load docker-image k8s.gcr.io/ingress-nginx/controller:v0.43.0 Image: "k8s.gcr.io/ingress-nginx/controller:v0.43.0" with ID "sha256:38dca1cbd23197f591e58fc6c949110b53f7a003e15f6d4974d86e7f7a00815d" not yet present on node "kind-control-plane", loading...