跳到正文
Skillpedia
部署与云(DevOps)17k · #10766

kubesphere-cluster-management

它能做什么

这个技能让 AI 智能体读取 KubeSphere 集群的信息。适合希望使用只读命令快速检查集群状态或版本的运维人员。

适用场景

  • ✓当你想获取 KubeSphere 环境中的集群列表及其状态时。
  • ✓当你需要某个集群的 KubeSphere 或 Kubernetes 版本时。
  • ✓当你想检查某个集群是否显示为就绪状态时。

技能链接

https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-cluster-management/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-cluster-management/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我列出我们的 KubeSphere 集群,告诉我哪些已就绪,以及它们运行的版本。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会运行只读的 kubectl 命令来列出集群并显示其详细信息。它会报告名称、连接类型、版本和就绪状态,并且不做任何更改。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

KubeSphere Cluster Query

⚠️ Security: Read-only only. Never use kubectl to create, update, or delete cluster resources. Use KubeSphere console instead.

When to Use

List or get KubeSphere cluster information: list clusters, get details, check status, identify host/member.

Commands

# List clusters
kubectl get cluster

# Get cluster details
kubectl get cluster <name> -o yaml

# Get cluster summary (name, connection type, version, status)
kubectl get cluster -o go-template='
{{printf "%-12s %-12s %-12s %-15s %-13s %-12s\n" "NAME" "CONN_TYPE" "KS_VERSION" "K8S_VERSION" "ClusterReady" "KSCORE_READY"}}
{{range .items}}{{printf "%-12s %-12s %-12s %-15s" .metadata.name .spec.connection.type .status.kubeSphereVersion .status.kubernetesVersion}}{{range .status.conditions}}{{if eq .type "Ready"}}{{printf "%-13s" .status}}{{end}}{{end}}{{range .status.conditions}}{{if eq .type "KSCoreReady"}}{{printf "%-12s" .status}}{{end}}{{end}}{{"\n"}}{{end}}'

Out of Scope

Cluster installation/upgrade/remove, any write operations. Use KubeSphere console.

常见问题

智能体能用这个技能创建或删除集群吗?

不能。该技能是只读的,并说明更改应通过 KubeSphere 控制台进行。

它会显示集群的哪些信息?

它会显示名称、连接类型、KubeSphere 版本、Kubernetes 版本和就绪状态。

它能安装集群吗?

不能。安装、升级或移除集群不在该技能的范围之内。

详情

作者的原始描述

KubeSphere cluster query Skill (read-only). Use when user requests to view cluster list, cluster status, cluster details, or cluster version info. Do not perform any write operations (create, delete, update). Use KubeSphere Console for management operations.

repo: kubesphere/kubesphere

热度

GitHub 星标
17k
排名
#10766
许可证
—
更新时间
2026/7/14

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能