当前位置:网站首页>Lens 创建 Service Accounts 及分配权限
Lens 创建 Service Accounts 及分配权限
2022-08-09 15:03:00 【tom马】
是一款开源的 Kubenretes IDE 也可以作为桌面客户端,官方网站 https://k8slens.dev,具有以下特性:
完全开源 GitHub 地址 https://github.com/lensapp/lens
实时展示集群状态
内置 Prometheus 监控
多集群,多个 namespace 管理
原生 Kubernetes 支持
支持使用 chart 安装应用
使用 kubeconfig 登陆认证
支持多平台,Windows、Mac、Linux
Visual Studio Code 友好的风格设计
1、创建 Servcie Accounts

2、创建一个 Cluster Role

3、修改Cluster Role
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cluster-role
uid: 7d36b90b-2407-428b-b2d9-744964ae962f
resourceVersion: '1005840'
creationTimestamp: '2021-09-17T06:27:29Z'
annotations:
kubectl.kubernetes.io/last-applied-configuration: >
{"apiVersion":"rbac.authorization.k8s.io/v1","kind":"ClusterRole","metadata":{"annotations":{},"creationTimestamp":"2021-09-17T06:27:29Z","name":"devops-role","selfLink":"/apis/rbac.authorization.k8s.io/v1/clusterroles/devops-role","uid":"7d36b90b-2407-428b-b2d9-744964ae962f"},"rules":[{"apiGroups":[""],"resources":["pods","pods/exec","pods/log"],"verbs":["*"]},{"apiGroups":[""],"resources":["services"],"verbs":["list","get","watch"]}]}
selfLink: /apis/rbac.authorization.k8s.io/v1/clusterroles/devops-role
# 添加的内容
rules:
- verbs:
- '*'
apiGroups:
- ''
resources:
- pods
- pods/exec
- pods/log
- verbs:
- list
- get
- watch
apiGroups:
- ''
resources:
- services4、把 Service Account 用户绑定到 Cluster Role

边栏推荐
- 蒙特卡罗 Monte Carlo 模拟
- Heap series _0x02: The past and present of the heap (WinDbg+Visual Studio compilation)
- 7.25-7.29学习总结(状态机及PWM原理)
- MySQL数据库基本知识
- 使用libwebsockets搭建一个简单的websocket服务器
- 软件安全基本概念
- Principal Component Analysis - Applications of MATLAB in Mathematical Modeling (2nd Edition)
- com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character
- Uart串口学习
- 输入不定长数组,输入一个字符串,既包含字符,又包含数字,输出数组,输入一个二维数组,字符和数字都可
猜你喜欢

Heap series _0x04: Internal structure of heap (_HEAP=_HEAP_SEGMENT+_HEAP_ENTRY)

Basic Concepts of Software Security

TOPSIS优劣解距离法

idea 用不了Ctrl+Shift+F快捷键全局搜索。

Candide3 face animation model

7.25-7.29学习总结(状态机及PWM原理)

单臂路由与三层交换机实现跨VLAN通讯

Unity Shader零基础入门2:环境光、漫反射、高光

PE format series _0x05: output table and relocation table (.reloc)

安装MySQL时出现starting the server失败
随机推荐
在任务管理器中结束任务进程之后电脑直接黑屏了
如何用栈实现队列
FFmpeg源码剖析-通用:ffmpeg_parse_options()
easywsclient的DEMO测试
Fiddler抓包夜神模拟器
层次分析法(AHP)——MATLAB在数学建模中的应用(第2版)
writeUP-[第五空间2019 决赛]PWN5(待进一步完善待研究内容)
相关性分析
软件安全基本概念
Uart串口学习
ACL配置
文件IO及其函数使用
Unity Shader 透视效果/XRay
NAT种类及配置
基于FTP协议的文件上传与下载
VRRP详解与配置实例
多元回归分析
Gray Relevance Matrix——Application of MATLAB in Mathematical Modeling
GO 使用 Protobuf实用指南
STL标准模板库