dashboard
复制代码
1
2
3
4
5kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.3.1/aio/deploy/recommended.yaml kubectl edit svc kubernetes-dashboard -n kubernetes-dashboard type: ClusterIP 改为 type: NodePort kubectl get svc -A |grep kubernetes-dashboard
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20#创建访问账号,准备一个yaml文件; vi dash.yaml apiVersion: v1 kind: ServiceAccount metadata: name: admin-user namespace: kubernetes-dashboard --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: admin-user roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: admin-user namespace: kubernetes-dashboard
复制代码
1kubectl apply -f dash.yaml
复制代码
1
2
3#获取访问令牌 kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}" https://IP:31428/#/login
kuboard
复制代码
1
2
3
4
5
6
7kubectl apply -f https://addons.kuboard.cn/kuboard/kuboard-v3.yaml # kubectl apply -f https://addons.kuboard.cn/kuboard/kuboard-v3-swr.yaml kubectl delete daemonset kuboard-etcd -n kuboard 为节点添加标签 kubectl label nodes your-node-name k8s.kuboard.cn/role=etcd 执行 kubectl apply -f https://addons.kuboard.cn/kuboard/kuboard-v3.yaml
复制代码
1http://IP:30080
最后
以上就是魁梧水池最近收集整理的关于K8S安装dashboard、kuboarddashboardkuboard的全部内容,更多相关K8S安装dashboard、kuboarddashboardkuboard内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复