当前位置:网站首页>Kubernetes (五) ---------部署 Kubernetes Dashboard
Kubernetes (五) ---------部署 Kubernetes Dashboard
2022-07-29 06:27:00 【在森林中麋了鹿】
一、简介
Kubernetes 仪表盘是 Kubernetes 集群的基于 Web 的通用 UI,它允许用户管理群集中运行的应用程序并对其进行故障排除,以及管理群集本身。
Github:
https://github.com/kubernetes/dashboard
二、下载 yaml 的资源清单
wget https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.4/aio/deploy/recommended.yaml
修改一下下载下面的 recommended.yaml 文件,修改红框的两个地方

三、应用 yaml 的资源清单
kubectl apply -f recommended.yaml (清单)

或者直接一步到位:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.4/aio/deploy/recommended.yaml
查看一下 pod 是否成功,注意命名空间是在kubernetes-dashboard 下面。
kubectl get pod -n kubernetes-dashboard
然后浏览器访问:

表示需要使用 https 访问:
https://ip:30001/
四、生成 Token

需要输入token,token的生成采用下面的三条命令
kubectl create serviceaccount dashboard-admin -n kube-system
kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin
kubectl describe secrets -n kube-system $(kubectl -n kube-system get secret | awk '/dashboard-admin/{print $1}')
得到 token;
边栏推荐
- Cvpr2022oral special series (I): low light enhancement
- 最新百亿量化私募名单
- [solution] error: lib/bridge_ generated. dart:837:9: Error: The parameter ‘ptr‘ of the method ‘FlutterRustB
- 10 frequently asked JVM questions in interviews
- SSH免密登录-两台虚拟机建立免密通道 双向信任
- Teacher wangshuyao wrote the notes of operations research course 00 in the front
- 【C语言刷LeetCode】67. 二进制求和(E)
- DM data guard cluster setup
- Windows 上 php 7.4 连接 oracle 配置
- 二次元卡通渲染——进阶技巧
猜你喜欢

做开发4年13K,想转行自动化测试,薪资还能涨吗···

Teacher wangshuyao's notes on operations research course 10 linear programming and simplex method (discussion on detection number and degradation)

IDEA中实现Mapper接口到映射文件xml的跳转

二次元卡通渲染——进阶技巧

Share some tips for better code, smooth coding and improve efficiency

怎么会不喜欢呢,CICD中轻松发送邮件

建木持续集成平台v2.5.2发布

实现改变一段文字的部分颜色效果

SQL优化

10 frequently asked JVM questions in interviews
随机推荐
Thread synchronization - producers and consumers, tortoise and rabbit race, dual thread printing
Ali gave several SQL messages and asked how many tree search operations need to be performed?
【C语言刷LeetCode】67. 二进制求和(E)
Flink real-time warehouse DWD layer (transaction domain - additional purchase dimension degradation processing) template code
数据库系统概述
做开发4年13K,想转行自动化测试,薪资还能涨吗···
外包干了3年,跳槽后转自动化测试工资是原来的2倍,秘诀原来是......
'function VTable for error: undefined reference to... 'cause and solution of the problem
resize2fs: 超级块中的幻数有错(Bad magic number in super-block )
Unity free element special effect recommendation
Is online legend software testing training really so black hearted? Are they all scams?
ECCV 2022丨轻量级模型架ParC-Net 力压苹果MobileViT代码和论文下载
Flink real-time warehouse DWD layer (Kafka associated with MySQL lookup join) template code
后缀自动机(SAM)讲解 + Luogu p3804【模板】后缀自动机 (SAM)
Image noise and matrix inversion
网上传说软件测试培训真的那么黑心吗?都是骗局?
ECCV 2022 lightweight model frame Parc net press apple mobilevit code and paper Download
[solution] error: lib/bridge_ generated. dart:837:9: Error: The parameter ‘ptr‘ of the method ‘FlutterRustB
解决CSDN因版权不明而无法发布博客的问题
gin 路由,参数,输出