kuborad-2通过kubectl安装

[TOC]

网址:

https://kuboard.cn/install/install-dashboard.html#在线体验

兼容版本kubernetes v1.13-1.18 kuboard版本v1.0.x

1-安装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

2-查看kuboard运行状态**

kubectl get pods -l k8s.eip.work/name=kuboard -n kube-system

3-输出结果**

NAME                       READY   STATUS        RESTARTS   AGE
kuboard-54c9c4f6cb-6lf88   1/1     Running       0          45s

4-管理员获取令牌

可在第一个 Master 节点上执行此命令

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

5-输出信息第一次登陆页面粘贴token即可

6 卸载

kubectl delete -f https://kuboard.cn/install-script/kuboard.yaml
kubectl delete -f https://addons.kuboard.cn/metrics-server/0.3.6/metrics-server.yaml