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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/google/skills/blob/main/skills/cloud/gke-storage-troubleshooting/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“بقيت حاوية GKE الخاصة بي في ContainerCreating منذ ساعة لأن قرصها لا يُركَّب. لماذا يحدث ذلك؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تجمع تفاصيل العنقود وحمل العمل ووحدة التخزين، ثم تفحص الأحداث والسجلات بحثًا عن أخطاء الربط والتركيب. وتقترح إصلاحات لملفات manifest والإعدادات لتراجعها بدلًا من تغيير الموارد الحية.

المحتوى التقني (ملف 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
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة