gke-storage-troubleshooting
Skill này làm gì
Skill này chẩn đoán các vấn đề lưu trữ cho ứng dụng chạy trên Google Kubernetes Engine. Skill dành cho các đội nền tảng có pod bị kẹt hoặc đĩa hoạt động kém.
Khi nào nên dùng
- ✓Khi các pod GKE bị kẹt ở ContainerCreating vì một volume không gắn hoặc không mount được.
- ✓Khi hiệu năng đĩa hoặc áp lực dung lượng node làm chậm khối lượng công việc GKE.
- ✓Khi một mount Cloud Storage FUSE hết bộ nhớ hoặc một lần mở rộng volume trên GKE thất bại.
Liên kết skill
https://github.com/google/skills/blob/main/skills/cloud/gke-storage-troubleshooting/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Pod GKE của tôi đã kẹt ở ContainerCreating suốt một giờ vì đĩa không mount được. Vì sao lại như vậy?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill thu thập chi tiết cụm, khối lượng công việc và volume, rồi kiểm tra sự kiện và nhật ký về lỗi gắn và mount. Skill đề xuất cách sửa cho manifest và thiết lập để bạn xem lại thay vì thay đổi tài nguyên đang chạy.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
GKE Storage Troubleshooting Skill
Use this skill to systematically diagnose and resolve persistent-storage failures for workloads running on GKE — volume attach/mount errors, disk performance and node storage pressure, volume expansion, storage-related cluster/node-pool creation errors, and Cloud Storage FUSE memory issues. This skill operates non-interactively and enforces a read-only diagnostics boundary before proposing manifest or configuration corrections.
For routine storage provisioning and StorageClass/PVC authoring, use the
gke-storageskill instead. This skill focuses on failure diagnosis.
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-storage-troubleshooting)"
and append agent-skills/1.0 (skill:gke-storage-troubleshooting) to User-Agent headers.
🔍 Diagnosis & Resolution Workflow
Step 0: Non-Interactive Context Discovery & Dry-Run Fallback
Parameter Extraction: Extract required context (
project_id,cluster_name,cluster_location,workload_name,workload_namespace,pod_name, and the relevantpvc_name/pv_name/node_name) non-interactively from the user prompt, activeSETTINGS.md, or environment defaults:- Default
workload_namespacetodefaultif omitted. - Infer missing cluster parameters from the active environment (
kubectl config current-contextorgcloud config get-value project).
- Default
Cluster Credentials & Fallback Mode:
- Attempt credential fetch:
gcloud container clusters get-credentials {cluster_name} --location {cluster_location} --project {project_id}. - Fallback / Dry-Run Mode: If the cluster is unreachable,
non-existent, or live command execution fails (such as in sandboxed
evaluations, dry-run mode, or offline analysis):
- Limit retry attempts to avoid resource exhaustion and context overflow.
- Immediately present the exact
kubectl/gclouddiagnostic commands for the human operator to run. - Synthesize the root-cause analysis and output the proposed GitOps correction based on the reported symptoms.
- Attempt credential fetch:
Step 1: Classify the Storage Symptom
Gather the primary signals, then jump to the matching branch under Step 2 (Resolution) — you normally perform only the one branch that matches your diagnosis, not all of them.
Diagnostic Commands:
kubectl describe pod {pod_name} -n {workload_namespace}
kubectl get pvc,pv -n {workload_namespace}
kubectl get events -n {workload_namespace} --sort-by='.metadata.creationTimestamp'
kubectl describe node {node_name}
- Pod stuck in
ContainerCreatingwith an attach/mount event → Volume Attach & Mount Failures. - Node-level slowness,
PLEG is not healthy, orStoragePressureDetectedevents → Disk Performance & Node Storage Pressure. - Cluster / node-pool creation or provisioning error → Storage Provisioning & Creation Failures.
- A resized volume is not reflected inside the container → Volume Expansion Not Reflecting in the Container.
- Cloud Storage FUSE Pod / sidecar OOM → Cloud Storage FUSE Out-Of-Memory (OOM) Events.
Step 2: Resolution
Perform only the branch that matches your Step 1 diagnosis. These branches are mutually exclusive alternatives, not sequential steps.
Volume Attach & Mount Failures
Error 400: Cannot attach RePD to an optimized VM: Regional persistent disks are restricted from being used with memory-optimized or compute-optimized machine types.- If a regional PD is not a hard requirement, switch the workload to a non-regional persistent disk StorageClass.
- If a regional PD is required, use taints and tolerations so that Pods needing regional PDs are scheduled onto a node pool that does not use optimized machine types.
**Pods stay
Pending/FailedSchedulingafter a node
Câu hỏi thường gặp
Skill có thiết lập lưu trữ mới không?
Không. Với việc cấp phát thông thường và thiết lập StorageClass hay PVC, hãy dùng skill gke-storage.
Skill có thay đổi cụm của tôi không?
Skill chỉ đọc khi chẩn đoán và chỉ đề xuất sửa.
Skill bao gồm những loại lỗi nào?
Sự cố gắn đĩa vùng, timeout mount fsGroup, lỗi pool Local SSD và Hyperdisk, và sự cố bộ nhớ Cloud Storage FUSE.
Chi tiết
Mô tả gốc của tác giả
Diagnoses GKE persistent-storage failures — volume attach/mount errors (Regional PD on optimized VMs, fsGroup mount timeouts), disk-performance and node storage-pressure issues, slow-disk Pod-creation failures, volume-expansion problems, Local SSD / Hyperdisk Storage Pool creation errors, and Cloud Storage FUSE OOM. Use when Pods are stuck in ContainerCreating, volumes fail to attach or mount, or nodes report storage pressure. Don't use for routine storage provisioning or StorageClass/PVC authoring (see the gke-storage skill).
repo: google/skills
Độ phổ biến
- Sao GitHub
- 22k
- Vị trí xếp hạng
- #10298
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
finding-google-skills
22kGiúp agent của bạn tìm hướng dẫn Google phù hợp cho việc thiết lập, như hosting, cơ sở dữ liệu, lưu trữ, đăng nhập hoặc phục vụ mô hình AI.
gcloud
22kGiúp agent của bạn viết và kiểm tra các lệnh gcloud của Google Cloud, tra cứu cú pháp chính xác trước khi chạy bất cứ thứ gì để không đoán các flag.
google-cloud-recipe-auth
22kHướng dẫn agent của bạn qua quản lý danh tính và quyền truy cập của Google Cloud, gồm cách con người và dịch vụ đăng nhập và những quyền họ nhận được.
google-cloud-recipe-onboarding
22kHướng dẫn một lập trình viên mới qua các bước đầu tiên trên Google Cloud, gồm chọn dự án, liên kết thanh toán và triển khai tài nguyên đầu tiên.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.