k8s-pvc-storage

k8s-pvc-storage is a skill for Claude Code, Codex from kudig-io/kudig-database. It costs 11 tokens per session (4,851 once invoked), scanned A, a copy of openclaw-workspace, Apache-2.0.

A Kubernetes storage troubleshooting guide focused on persistent volume claims, which are requests for storage that applications can keep using beyond one container run. It also includes a broader Kubernetes operations and pod-diagnosis section.

In plain words
What is it for?
Use it to diagnose persistent storage issues and related Kubernetes pod failures.
Why use it?
It provides a structured way to collect information and investigate storage or pod problems, including low-risk read-only checks.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to diagnose persistent storage issues and related Kubernetes pod failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kudig-io/kudig-database/k8s-pvc-storage
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kudig-io/kudig-database --skill k8s-pvc-storage
Clone the repo
git clone --depth 1 https://github.com/kudig-io/kudig-database

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for k8s-pvc-storage

README.md
[![agentmods](https://agentmods.dev/badge/skills/kudig-io/kudig-database/k8s-pvc-storage/github.svg)](https://agentmods.dev/skills/kudig-io/kudig-database/k8s-pvc-storage)
Your own site
<a href="https://agentmods.dev/skills/kudig-io/kudig-database/k8s-pvc-storage"><img src="https://agentmods.dev/badge/skills/kudig-io/kudig-database/k8s-pvc-storage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for k8s-pvc-storage

Your own site · 80×15
<a href="https://agentmods.dev/skills/kudig-io/kudig-database/k8s-pvc-storage"><img src="https://agentmods.dev/badge/skills/kudig-io/kudig-database/k8s-pvc-storage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 98% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.04851
Opus 5.5 $0.00004 $0.01940
Sonnet 5.5 $0.00002 $0.00970
Haiku 4.5 $0.00001 $0.00485

Measured 1mo ago against content hash 32db12e17135, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

k8s-pvc-storage scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/diagnose-quick.sh, scripts/verify-pvc.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

kubectl run net-test --image=busybox:1.36 --rm -it --restart=Never -- wget -qO- --timeout=5 http://<svc>.<ns>:<port>
Origin

This is a copy

98% identical to openclaw-workspace — 19 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

19-故障诊断/08-技能体系/skill-set/k8s-pvc-storage/SKILL.md · 432 lines

How it starts

The opening of the file, as written. The whole thing — 432 lines — stays where its author put it; the contents beside it link to each section on GitHub.

生产环境安全提示

本文档包含可直接执行的运维命令。执行前请确认:当前目标集群与 Namespace 是否正确;是否具备足够的 RBAC 权限;是否已在非生产环境验证。命令风险等级标注:🔴 高风险(可能造成数据丢失或服务中断)、🟡 中风险(会修改集群状态,但通常可回滚)、🟢 低风险/只读(信息收集,无副作用)。

title: K8S 运维诊断技能库 description: [[kubernetes|Kubernetes]] 运维诊断全栈技能库,涵盖 Pod/Node/Network/Storage/Performance 五大故障域的结构化 SOP category: ai-agent tags:

  • ai
  • agent
  • llm
  • rag
  • multi-agent
  • [[etcd|etcd]]
  • apiserver
  • [[kubelet|kubelet]]
  • [[prometheus|prometheus]]
  • coredns last_updated: 2026-04 difficulty: advanced reading_level: advanced audience:
  • AI 工程师
  • 架构师
  • SRE estimated_read_time: 5min intent_queries:
  • K8S 运维诊断技能库 是什么
  • 如何 K8S 运维诊断技能库 trigger_keywords:
  • K8S
  • 运维诊断技能库
  • ai
  • agent authors:
  • name: KUDIG Team role: contributor k8s_versions:
  • '1.28'
  • '1.29'
  • '1.30'
  • '1.31'
  • '1.32'

K8S 运维诊断技能库

1. 技能覆盖范围

技能域全景:

├── Pod 故障域
│   ├── Pending(调度失败)
│   ├── CrashLoopBackOff(崩溃循环)
│   ├── OOMKilled(内存溢出)
│   ├── ImagePullBackOff(镜像拉取失败)
│   ├── Error / Unknown(其他异常)
│   └── Evicted(被驱逐)
│
├── Node 故障域
│   ├── NotReady(节点不就绪)
│   ├── MemoryPressure / DiskPressure / PIDPressure
│   ├── NetworkUnavailable
│   └── SchedulingDisabled
│
├── Network 故障域
│   ├── Service 不通
│   ├── DNS 解析失败
│   ├── Pod 间通信异常
│   ├── Ingress 不可达
│   └── NetworkPolicy 拦截
│
├── Storage 故障域
│   ├── PVC Pending
│   ├── 挂载失败
│   └── CSI 驱动异常
│
└── Performance 故障域
    ├── API Server 延迟高
    ├── etcd 延迟高
    ├── 调度延迟
    └── 网络延迟

2. Pod 故障诊断 SOP

2.1 Pod Pending

触发条件: Pod 状态为 Pending 超过 30 秒

# 🟢 低风险:只读/信息收集,通常无副作用
# Step 1: 确认状态
kubectl get pod <pod> -n <ns> -o wide

# Step 2: 查看事件(关键!事件中有调度失败原因)
kubectl describe pod <pod> -n <ns> | tail -20
kubectl get events -n <ns> --field-selector involvedObject.name=<pod> --sort-by=.lastTimestamp

# Step 3: 根据事件分支诊断
事件关键词 根因 修复方向
Insufficient cpu/memory 节点资源不足 扩容节点 / 调整 requests
node(s) didn't match selector NodeSelector 不匹配 检查标签 / 修改选择器
node(s) had taint Taint/Toleration 不匹配 添加 Toleration / 移除 Taint
persistentvolumeclaim not found PVC 未绑定 检查 PVC 状态和 StorageClass
Unschedulable 节点不可调度 检查节点 SchedulingDisabled
pod has unbound immediate PVC PVC 立即绑定未就绪 等待 PVC Ready 或检查 PV

Read the full file on GitHub · 432 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +19 lines 32db12e17135
  2. 1mo ago First seen · 413 lines · 11 tokens per session scan A 3f5dabf1b7fc

Subscribe to this mod's changes

k8s-pvc-storage is a skill published in the GitHub repository kudig-io/kudig-database (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 11 tokens to every session and 4,851 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 98% identical to openclaw-workspace, differing in 19 lines, and is treated as a copy.