K8S dashboard 无法访问

背景

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

解决??

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值