当前位置:网站首页>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;
边栏推荐
猜你喜欢

剑指 Offer II 115:重建序列

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

VMware16创建虚拟机:Win11无法安装

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

MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of

Unity探索地块通路设计分析 & 流程+代码具体实现

ECCV 2022丨轻量级模型架ParC-Net 力压苹果MobileViT代码和论文下载

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

Student status management system based on C language design

win11系统错误:由于找不到 iertutil.dll,无法继续执行代码。重新安装程序可能会解决此问题
随机推荐
【C语言刷LeetCode】67. 二进制求和(E)
Teacher wangshuyao's notes on operations research 05 linear programming and simplex method (concept, modeling, standard type)
Basic knowledge of MySQL (high frequency interview questions)
MySQL queries are case sensitive
Teacher wangshuyao's notes on operations research 06 linear programming and simplex method (geometric significance)
Flink real-time warehouse DWD layer (order placing multiple tables to realize join operation) template code
Unity探索地块通路设计分析 & 流程+代码具体实现
Teacher Cui Xueting's course notes on optimization theory and methods 00 are written in the front
gin 中间件
Flink实时仓库-DWD层(处理复杂数据-流和表的装换处理)模板代码
Can MySQL export tables regularly?
数组的子集能否累加出K
Flink real-time warehouse DWD layer (transaction domain - additional purchase dimension degradation processing) template code
IO流 - File - properties
IO stream - file - properties
Teacher wangshuyao's notes on operations research 01 guidance and introduction
Unity free element special effect recommendation
Thread synchronization - producers and consumers, tortoise and rabbit race, dual thread printing
Image noise and matrix inversion
VMware16安装虚拟机遇到的问题