Avoid common Kubernetes mistakes — resource limits, probe configuration, selector mismatches, and RBAC pitfalls.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install k8s或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install k8s⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/k8s/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Kubernetes description: Avoid common Kubernetes mistakes — resource limits, probe configuration, selector mismatches, and RBAC pitfalls. metadata: {"clawdbot":{"emoji":"☸️","requires":{"bins":["kubectl"]},"os":["linux","darwin","win32"]}} ---
requests = guaranteed minimum — scheduler uses this for placementlimits = maximum allowed — exceeding memory = OOMKilled, CPU = throttledrequests without limits = burstable — can use more if availablereadinessProbe controls traffic — fails = removed from Service endpointslivenessProbe restarts container — fails = container killed and restartedstartupProbe for slow starts — disables liveness/readiness until successinitialDelaySeconds too short — pod killed before app startstimeoutSeconds too short — slow response = restart loopscheme: HTTPSapp, version, environmentmatchExpressions for complex selection — In, NotIn, ExistsenvFrom imports all keys — env.valueFrom for specific keyssubPath for single file without replacing directoryClusterIP internal only — default, only accessible within clusterNodePort exposes on node IP — 30000-32767 range, not for productionLoadBalancer provisions cloud LB — works only in supported environmentsstorageClassName must match — or use "" for no dynamic provisioningReadWriteOnce = single node — ReadWriteMany needed for multi-podpersistentVolumeReclaimPolicy controls PV fatekubectl apply vs create — apply for declarative (can update), create for imperative (fails if exists)-n namespace or set context defaultlatest in production — no version pinning, unpredictable updatesimagePullPolicy — Always for latest tag, IfNotPresent for versionedkubectl describe pod for events — shows scheduling failures, probe failureskubectl logs -f pod for logs — -p for previous container (after crash)kubectl exec -it pod -- sh for shell — debug inside containerkubectl get events --sort-by=.lastTimestamp — cluster-wide events timelineServiceAccount per workload — not default, for least privilegeRole is namespaced — ClusterRole is cluster-wideRoleBinding binds Role to user/SA — ClusterRoleBinding for cluster-widekubectl auth can-i verb resource --as=system:serviceaccount:ns:sa安装 Kubernetes 后,可以对 AI 说这些话来触发它
Help me get started with Kubernetes
Explains what Kubernetes does, walks through the setup, and runs a quick demo based on your current project
Use Kubernetes to avoid common Kubernetes mistakes — resource limits, probe configura...
Invokes Kubernetes with the right parameters and returns the result directly in the conversation
What can I do with Kubernetes in my developer & devops workflow?
Lists the top use cases for Kubernetes, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/k8s/ 目录(个人级,所有项目可用),或 .claude/skills/k8s/(项目级)。重启 AI 客户端后,用 /k8s 主动调用,或让 AI 根据上下文自动发现并使用。
Kubernetes 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Kubernetes 可免费安装使用。请查阅仓库了解许可证信息。
Avoid common Kubernetes mistakes — resource limits, probe configuration, selector mismatches, and RBAC pitfalls.
Kubernetes 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Kubernetes
Identifies repetitive steps in your workflow and sets up Kubernetes to handle them automatically