一: K8S 中安装 Kuboard v3

查考:
https://www.kuboard.cn/install/v3/install-in-k8s.html

wget https://addons.kuboard.cn/kuboard/kuboard-v3.yaml

常看说需要的镜像:
cat kuboard-v3.yaml
----
image: 'eipwork/etcd-host:3.4.16-1'
image: 'eipwork/kuboard:v3'
----
docker pull eipwork/etcd-host:3.4.16-1
docker pull eipwork/kuboard:v3
所有节点都需要下载:

image.png
image.png

修改镜像下载策略
vim kuboard-v3.yaml

----

 imagePullPolicy: IfNotPresent

-----

image.png

image.png

因为k8s集群是二进制方式部署的所以要设置etcd节点的标签:
不然找不到etcd

  kubectl label nodes flyfishsrvs01 k8s.kuboard.cn/role=etcd
  kubectl label nodes flyfishsrvs02 k8s.kuboard.cn/role=etcd
  kubectl label nodes flyfishsrvs03 k8s.kuboard.cn/role=etcd

  kubectl label nodes flyfishsrvs01 k8s.kuboard.cn/name=kuboard-etcd
  kubectl label nodes flyfishsrvs02 k8s.kuboard.cn/name=kuboard-etcd
  kubectl label nodes flyfishsrvs03 k8s.kuboard.cn/name=kuboard-etcd

image.png
image.png

kubectl apply -f kuboard-v3.yaml

image.png

kubectl get pod -n kuboard 

kubectl get deploy,svc,pod -n kuboard

image.png
image.png

打开web页面
访问 Kuboard
在浏览器中打开链接 http://172.16.10.11:30080

输入初始用户名和密钥,并登录

用户名: admin
密钥: Kuboard123

image.png

image.png