linux

kubernetes 1.12.1 高可用安装之部署Dashboard

发布时间:7年前热度: 9700 ℃评论数:

创建Dashboard

需要CoreDNS部署成功之后再安装Dashboard。

[root@master01 ~]# wget https://zhl123.com/download/k8s/dashboard.tgz [root@master01 ~]# tar xf dashboard.tgz [root@master01 ~]# kubectl create -f dashboard/ [root@master01 ~]# kubectl cluster-info

Kubernetes master is running at https://10.80.4.200:6443 CoreDNS is running at https://10.80.4.200:6443/api/v1/namespaces/kube-system/services/coredns:dns/proxy kubernetes-dashboard is running at https://10.80.4.200:6443/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

访问Dashboard

https://10.80.4.200:6443/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy

用户名:admin 密码:admin 选择Token令牌模式登录。

获取Token

[root@master01 ~]# kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')

26-1.png

26-2.png

安装Dashboard

手机扫码访问