[root@linux-node1 ~]# kubectl create -f coredns.yaml [root@linux-node1 ~]# kubectl get pod -n kube-system NAME READY STATUS RESTARTS AGE coredns-77c989547b-9pj8b 1/1 Running 0 6m coredns-77c989547b-kncd5 1/1 Running 0 6m
ps:node
dashboard yaml文件地址: https://github.com/unixhot/salt-kubernetes/tree/master/addons/dashboardlinux
[root@linux-node1 ~]# kubectl create -f dashboard/ [root@linux-node1 ~]# kubectl cluster-info Kubernetes master is running at https://192.168.56.11:6443 kubernetes-dashboard is running at https://192.168.56.11:6443/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')