본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)22k · #10298

gke-storage-troubleshooting

하는 일

이 스킬은 Google Kubernetes Engine에서 실행되는 앱의 스토리지 문제를 진단합니다. 파드가 멈추거나 디스크가 제대로 동작하지 않는 플랫폼 팀을 위한 스킬입니다.

사용하는 경우

  • ✓볼륨이 연결되거나 마운트되지 않아 GKE 파드가 ContainerCreating에 멈춰 있을 때.
  • ✓디스크 성능이나 노드 스토리지 압박으로 GKE 워크로드가 느려질 때.
  • ✓Cloud Storage FUSE 마운트의 메모리가 부족하거나 GKE 볼륨 확장이 실패할 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/cloud/gke-storage-troubleshooting/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/cloud/gke-storage-troubleshooting/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“GKE 파드가 디스크를 마운트하지 못해 한 시간째 ContainerCreating 상태입니다. 원인을 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

클러스터, 워크로드, 볼륨 세부 정보를 모은 다음, 연결과 마운트 오류에 대한 이벤트와 로그를 확인합니다. 라이브 리소스를 바꾸는 대신 매니페스트와 설정에 대한 수정안을 제안해 검토하게 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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-storage skill 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

  1. Parameter Extraction: Extract required context (project_id, cluster_name, cluster_location, workload_name, workload_namespace, pod_name, and the relevant pvc_name / pv_name / node_name) non-interactively from the user prompt, active SETTINGS.md, or environment defaults:

    • Default workload_namespace to default if omitted.
    • Infer missing cluster parameters from the active environment (kubectl config current-context or gcloud config get-value project).
  2. 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 / gcloud diagnostic commands for the human operator to run.
      • Synthesize the root-cause analysis and output the proposed GitOps correction based on the reported symptoms.

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 ContainerCreating with an attach/mount event → Volume Attach & Mount Failures.
  • Node-level slowness, PLEG is not healthy, or StoragePressureDetected events → 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 / FailedScheduling after a node

자주 묻는 질문

새 스토리지를 설정하나요?

아닙니다. 일상적인 프로비저닝과 StorageClass, PVC 설정은 gke-storage 스킬을 쓰세요.

클러스터를 바꾸나요?

진단하는 동안은 읽기 전용이며, 수정안만 제안합니다.

어떤 종류의 오류를 다루나요?

리전 디스크 연결 문제, fsGroup 마운트 시간 초과, Local SSD와 Hyperdisk 풀 오류, Cloud Storage FUSE 메모리 문제를 다룹니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
22k
순위
#10298
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬