安装 K8S 集群管理工具(Kuboard)
kubectl apply -f https://kuboard.cn/install-script/kuboard.yaml
kubectl apply -f https://addons.kuboard.cn/metrics-server/0.3.7/metrics-server.yaml
查看pods运行状态
kubectl get pods -l k8s.kuboard.cn/name=kuboard -n kube-system
如果输出结果如下,则管理控制台运行成功
[root@k8s-master ~]# kubectl get pods -l k8s.kuboard.cn/name=kuboard -n kube-system
NAME READY STATUS RESTARTS AGE
kuboard-7bb89b4cc4-jq4j6 1/1 Running 0 57s
访问Kuboard
生成Token
[root@k8s-master ~]# echo $(kubectl -n kube-system get secret $(kubectl -n kube-system get secret | grep kuboard-user | awk '{print $1}') -o go-template='{{.data.token}}' | base64 -d)
eyJhbGciOiJSUzI1NiIsImtpZCI6IlhJdWw0QnRXLVlIS19KS1QtYmN6MVFseWYxVUhTaFoyVGRsbURVY3hwQXMifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJrdWJvYXJkLXVzZXItdG9rZW4tNzQybGciLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoia3Vib2FyZC11c2VyIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQudWlkIjoiY2JkNzY5MjktZjA4MC00ZDFiLWE2ZDgtMjNjNWIwOTdjMjY4Iiwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50Omt1YmUtc3lzdGVtOmt1Ym9hcmQtdXNlciJ9.5XGwYk0_qMM9krzm0QDJEjTb_Pk5hLpFsXpifvemA1Tf-FoSjmSoaMcRRAID9i6my-Lb0ebZNd-SfjHVDG056aVq5JyEwwydJlZ1H763TbCD8rhZlvmJxs9yvd8Enlkhpit5BhuvPeR4HWMmPSV-IDykE_gcQalVU7IiRYnfX3Cq1DCMmQ8ZQE6YU-HTM_qUho5Kv_xzEXXNfxcIU9hcC8kAnDIHDS6KYLkkCcxVXu1QTK-AkOF1byYs_ee49hMytrS742g-gXtIyFi7pcVZz-Yigxx9QiQhPakoHZVgDU_zlOSyEuL4iWBjfFZhe9_1zexrMxFk981PHeZV-CM-Xg
将其中输出的token复制,打开任意一个浏览器,输入 http://slave的节点ip:32567/ 访问,输入token,点击login
即可进入如下的界面