Dashboard用于展示集群中的各类资源
一、Dashboard配置
VIP内容
VIP登录后查看
Login
二、Dashboard验证
0 1 2 3 |
[root@k8s-master01 dashboard]# kubectl get po -n kubernetes-dashboard NAME READY STATUS RESTARTS AGE dashboard-metrics-scraper-6d57655c59-gkjkm 1/1 Running 0 3m36s kubernetes-dashboard-64d9448ff7-dgqgg 1/1 Running 0 3m36s |
三、Dashboard访问
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[root@k8s-master01 dashboard]# kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}') Name: admin-user-token-d4dc5 Namespace: kube-system Labels: <none> Annotations: kubernetes.io/service-account.name: admin-user kubernetes.io/service-account.uid: 628b9a7c-596d-4475-b583-f4a6c722732f Type: kubernetes.io/service-account-token Data ==== ca.crt: 1411 bytes namespace: 11 bytes token: eysfssexdtpZCI6Im56czBQaGw1UWNjX0RyUjBUT1pQQnVIZ2lQZnZ0c1JVLUljWTVlaHFOek0ifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJhZG1pbi11c2VyLXRva2VuLWQ0ZGM1Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6ImFkbWluLXVzZXIiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI2MjhiOWE3Yy01OTZkLTQ0NzUtYjU4My1mNGE2YzcyMjczMmYiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6a3ViZS1zeXN0ZW06YWRtaW4tdXNlciJ9.pmrRsOZq7ismWosQoet5a0wNp395Oyu_YWTOv7Loj_24dQQekG_MkkoyvYx4xq3edgy_1E_GaCBs3_Wls0pE4pQwGvg8R3ZJ_GTr6JX5u4d1IDpxFqke-_F7ajLNp6JtFqti44sx8puTI1RzHL08aZszkU1F77dnq07HKTXlxTyQBhdIu7wxse7m-VHuQvC9hMkpXzyaU8aiE2T-DhLMKD6Ila_sU-80VUlanNkrKNGUgEg-7FxzCVWiJq1h7mfFs1v-UBOUF6lE1PNfw7eP_lJJe3fcOGm9ofpiH4ZBsmdV6ZAlaIDyrKNsYuc_zczrFEfWjzDiggiuh [root@k8s-master01 dashboard]# kubectl get svc kubernetes-dashboard -n kubernetes-dashboard NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes-dashboard NodePort 192.168.31.151 <none> 443:31928/TCP 7m55s |
SourceByrd's Weblog-https://note.t4x.org/kubernetes/k8s-dashboard-install/
SourceByrd's Weblog-https://note.t4x.org/kubernetes/k8s-dashboard-install/ SourceByrd's Weblog-https://note.t4x.org/kubernetes/k8s-dashboard-install/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!