当前位置:网站首页>kubernetes创建一个dashboard只读权限的用户(具有exec权限)
kubernetes创建一个dashboard只读权限的用户(具有exec权限)
2022-07-20 12:23:00 【51CTO】
1.下面我们来手动创建一个对cluster级别的资源也有只读权限的用户
2.创建一个叫作cluster-readonly
的clusterrole
3.创建一个叫作cluster-readonly
的clusterrolebinding
4.通过kubectl get secret -n=kube-system把所有的secret都列出来,然后找到具体的那一个)查看dashboard-readonly
用户的secret,里面包含token,我们把token复制到dashboard登陆界面登陆
kubectl describe secret -n=kube-system dashboard-readonly-token-随机字符串
5.登录dashboard验证
删除pod或者其他资源时,提示如下:
验证完成。
边栏推荐
- C language practice item: Sanzi chess
- UIScrollView 和 UIPageControl 实现启动滑动图[通俗易懂]
- InsightFace-Paddle 使用指南(2)
- Google Earth engine - merra-2 m2t1nxaer: aerosol daily data set from 1980 to 2022
- Nextcloud personal cloud storage is an excellent choice: one click automatic installation method and cloud disk use experience
- Construction of Seata multilingual system
- Surface strongest editor sublime | regular expression skills
- 【暑期每日一题】洛谷 P7550 [COCI2020-2021#6] Bold
- What is the difference between dall-e2 and imgen? Reddit hot post inventory effect difference
- 插件qrcode和ityped
猜你喜欢
[machine learning] dandelion Book 1
[advanced C language] custom type - bit segment & enumeration & Union of structure
Chuqi technology is committed to design and development
Recommend a WordPress paid theme station
Sorting out and solutions of common problems in pytorch
第2讲 Hi3861的WiFi实验-API-2
Ultra light fast generic face detector 1MB custom dataset training | multi classification modification Guide (1)
KusionStack 开源|Kusion 模型库和工具链的探索实践
面試真題2
Lesson 2 WiFi experiment of hi3861 -api-4
随机推荐
Get to know MySQL for the first time
Audio and video learning (IX) -- RTCP protocol
Insightface paddle User Guide (1)
模块学习(二)——MPU6050
ArcGIS API for flex dynamic point and line drawing
Chapter 1 Introduction to creating rest services
[machine learning] dandelion Book 1
第2讲 Hi3861的WiFi实验-AP模式
FC can the background script be run all the time? For example, keep going to the database to get data processing and write it to another database
Redis Learning notes (1) - Power Node of Station B
Audio and video learning (VIII) -- RTP protocol
R language ggplot2 visualization: the label data of visual faceted scatter diagram is word cloud, and geom using ggrep package_ text_ The repl function avoids overlapping word cloud labels
LeetCode - 回文数
[advanced C language] custom type - bit segment & enumeration & Union of structure
自动推理的逻辑05--谓词演算
Sorting out and solutions of common problems in pytorch
【每日一题】1260. 二维网格迁移
Lesson 2 WiFi experiment of hi3861 -api-2
How to improve the clarity of LED display?
Annual weight! Huawei cloud 2021 application construction technology practice collection, 400 pages in seven fields + cloud development classic | Yunxiang library No.02 recommendation (with free downl