Skip to main content
Glama
my_clusters.json3.5 kB
{ "type": "page", "title": "集群权限", "remark": { "body": "用户已获授权集群列表。如需增加授权,请联系平台管理员(平台设置-多集群管理-授权)。", "icon": "question-mark", "placement": "right", "trigger": "click", "rootClose": true }, "body": [ { "type": "alert", "level": "success", "body": "<div class='alert alert-info'><p><strong>我已经获得集群授权情况。权限解释:</strong></p><p><strong>集群管理员:</strong>可以管理和操作所有集群资源,包括创建、修改、删除、Exec等操作。</p><p><strong>集群只读:</strong>仅可查看集群资源信息,无法进行修改操作。</p><p><strong>Exec权限:</strong>具有进入容器内,执行命令的权限</p><p><strong>白名单命名空间:</strong>置空表示不限制,可访问该集群下所有的命名空间。如果填写了,那么用户就只能访问指定的命名空间了。</p><p><strong>黑名单命名空间:</strong>置空表示不限制,如果填写了,那么用户将不能访问该命名空间。黑名单可否定白名单。黑名单权限最高。</p><p><strong>授权类型:</strong>可以为用户、用户组分别授权,当为用户组时,对组内所有用户生效操作。</p></div>" }, { "type": "crud", "id": "myClustersCRUD", "name": "myClustersCRUD", "headerToolbar": [ { "type": "columns-toggler", "align": "right", "draggable": true, "icon": "fas fa-cog", "overlay": true, "footerBtnSize": "sm" }, { "type": "tpl", "tpl": "共${count}条", "align": "right", "visibleOn": "${count}" }, { "type": "columns-toggler", "align": "left" }, "reload" ], "autoFillHeight": true, "api": "get:/mgm/user/profile/cluster/permissions/list", "columns": [ { "name": "username", "label": "用户名" }, { "name": "cluster", "label": "集群名称", "sortable": true }, { "name": "role", "label": "权限", "type": "mapping", "map": { "cluster_admin": "集群管理员", "cluster_pod_exec": "Exec权限", "cluster_readonly": "集群只读" } }, { "name": "namespaces", "label": "白名单命名空间", "type": "tpl", "tpl": "${namespaces | split:',')}", "placeholder": "-" }, { "name": "blacklist_namespaces", "label": "黑名单命名空间", "type": "tpl", "tpl": "${blacklist_namespaces | split:',')}", "placeholder": "-" }, { "name": "authorization_type", "label": "授权类型", "type": "mapping", "map": { "user": "<span class='label label-success'>用户</span>", "user_group": "<span class='label label-warning'>用户组</span>", "*": "<span class='label label-success'>用户</span>" } }, { "name": "created_at", "label": "授权时间", "type": "datetime" }, { "name": "created_by", "label": "授权人" } ] } ] }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/weibaohui/k8m'

If you have feedback or need assistance with the MCP directory API, please join our Discord server