背景
node 正常
pod 正常
但是dashboard 无法访问
root@n226-060-152:/etc/init.d# kubectl get pod --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-66bff467f8-nczr6 1/1 Running 0 24h
kube-system coredns-66bff467f8-vr296 1/1 Running 0 24h
kube-system etcd-n226-060-152 1/1 Running 0 24h
kube-system kube-apiserver-n226-060-152 1/1 Running 0 24h
kube-system kube-controller-manager-n226-060-152 1/1 Running 0 24h
kube-system kube-flannel-ds-2vlf9 1/1 Running 0 24h
kube-system kube-flannel-ds-5blq4 1/1 Running 0 168m
kube-system kube-flannel-ds-mzkw4 1/1 Running 0 4h8m
kube-system kube-flannel-ds-svdx8 1/1 Running 6 123m
kube-system kube-proxy-dfcxb 1/1 Running 0 168m
kube-system kube-proxy-gzk8b 1/1 Running 0 4h8m
kube-system kube-proxy-rmtzj 1/1 Running 0 49m
kube-system kube-proxy-vz54p 1/1 Running 0 24h
kube-system kube-scheduler-n226-060-152 1/1 Running 0 24h
kubernetes-dashboard dashboard-metrics-scraper-6b4884c9d5-hfwzw 1/1 Running 0 68m
kubernetes-dashboard kubernetes-dashboard-7b544877d5-2xcnr 1/1 Running 0 68m
root@n226-060-152:/etc/init.d# kubectl get node
NAME STATUS ROLES AGE VERSION
n224-214-218 Ready <none> 169m v1.18.4
n226-060-152 Ready master 24h v1.18.4
n226-070-133 Ready <none> 124m v1.18.4
n226-075-141 Ready <none> 4h9m v1.18.4
kubectl --namespace=kubernetes-dashboard get service kubernetes-dashboard
root@n226-060-152:/etc/init.d# kubectl --namespace=kubernetes-dashboard get service kubernetes-dashboard
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes-dashboard NodePort 10.97.6.168 443:30977/TCP 70m