[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6994R4XRXJN980F609993J9":3,"skill-same:01M6994R4XRXJN980F609993J9":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":6,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6994R4XRXJN980F609993J9","gke-storage-troubleshooting",null,"Diagnoses GKE persistent-storage failures — volume attach\u002Fmount 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 \u002F 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\u002FPVC authoring (see the gke-storage skill).","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-storage-troubleshooting\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"gke storage troubleshooting","gke storage","storage","gke","troubleshooting","when","performance","routine","expansion","errors","Cloud Storage","authoring","creation","local","volume","pd","attach","node","disk","issues","2026-11-10 10:12:30",false,"---\nname: gke-storage-troubleshooting\nmetadata:\n  category: Storage\n  version: \"1.1.1\"\ndescription: >-\n  Diagnoses GKE persistent-storage failures — volume attach\u002Fmount 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 \u002F 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\u002FPVC authoring (see the gke-storage skill).\n---\n\n# GKE Storage Troubleshooting Skill\n\nUse this skill to systematically diagnose and resolve **persistent-storage\nfailures** for workloads running on GKE — volume attach\u002Fmount errors, disk\nperformance and node storage pressure, volume expansion, storage-related\ncluster\u002Fnode-pool creation errors, and Cloud Storage FUSE memory issues. This\nskill operates non-interactively and enforces a read-only diagnostics boundary\nbefore proposing manifest or configuration corrections.\n\n> For routine storage **provisioning** and StorageClass\u002FPVC authoring, use the\n> `gke-storage` skill instead. This skill focuses on **failure diagnosis**.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:gke-storage-troubleshooting)\"`\nand append `agent-skills\u002F1.0 (skill:gke-storage-troubleshooting)` to `User-Agent` headers.\n\n## ? Diagnosis & Resolution Workflow\n\n### Step 0: Non-Interactive Context Discovery & Dry-Run Fallback\n\n1.  **Parameter Extraction**: Extract required context (`project_id`,\n    `cluster_name`, `cluster_location`, `workload_name`, `workload_namespace`,\n    `pod_name`, and the relevant `pvc_name` \u002F `pv_name` \u002F `node_name`)\n    non-interactively from the user prompt, active `SETTINGS.md`, or environment\n    defaults:\n\n    -   Default `workload_namespace` to `default` if omitted.\n    -   Infer missing cluster parameters from the active environment (`kubectl\n        config current-context` or `gcloud config get-value project`).\n\n2.  **Cluster Credentials & Fallback Mode**:\n\n    -   Attempt credential fetch: `gcloud container clusters get-credentials\n        {cluster_name} --location {cluster_location} --project {project_id}`.\n    -   **Fallback \u002F Dry-Run Mode**: If the cluster is unreachable,\n        non-existent, or live command execution fails (such as in sandboxed\n        evaluations, dry-run mode, or offline analysis):\n        -   Limit retry attempts to avoid resource exhaustion and context\n            overflow.\n        -   Immediately present the exact `kubectl` \u002F `gcloud` diagnostic\n            commands for the human operator to run.\n        -   Synthesize the root-cause analysis and output the proposed GitOps\n            correction based on the reported symptoms.\n\n--------------------------------------------------------------------------------\n\n### Step 1: Classify the Storage Symptom\n\nGather the primary signals, then jump to the **matching branch under Step 2\n(Resolution)** — you normally perform **only the one branch** that matches your\ndiagnosis, not all of them.\n\n**Diagnostic Commands:**\n\n```bash\nkubectl describe pod {pod_name} -n {workload_namespace}\nkubectl get pvc,pv -n {workload_namespace}\nkubectl get events -n {workload_namespace} --sort-by='.metadata.creationTimestamp'\nkubectl describe node {node_name}\n```\n\n-   **Pod stuck in `ContainerCreating` with an attach\u002Fmount event** → **Volume\n    Attach & Mount Failures**.\n-   **Node-level slowness, `PLEG is not healthy`, or `StoragePressureDetected`\n    events** → **Disk Performance & Node Storage Pressure**.\n-   **Cluster \u002F node-pool creation or provisioning error** → **Storage\n    Provisioning & Creation Failures**.\n-   **A resized volume is not reflected inside the container** → **Volume\n    Expansion Not Reflecting in the Container**.\n-   **Cloud Storage FUSE Pod \u002F sidecar OOM** → **Cloud Storage FUSE\n    Out-Of-Memory (OOM) Events**.\n\n--------------------------------------------------------------------------------\n\n### Step 2: Resolution\n\nPerform **only the branch that matches your Step 1 diagnosis**. These branches\nare mutually exclusive alternatives, not sequential steps.\n\n#### Volume Attach & Mount Failures\n\n-   **`Error 400: Cannot attach RePD to an optimized VM`**: Regional persistent\n    disks are restricted from being used with **memory-optimized** or\n    **compute-optimized** machine types.\n\n    -   If a regional PD is not a hard requirement, switch the workload to a\n        **non-regional persistent disk** StorageClass.\n    -   If a regional PD **is** required, use **taints and tolerations** so that\n        Pods needing regional PDs are scheduled onto a node pool that does\n        **not** use optimized machine types.\n\n-   **Pods stay `Pending` \u002F `FailedScheduling` after a node pool is moved to a\n    4th-generation (N4, N4A, N4D) machine series while the workload uses a\n    Persistent Disk StorageClass**: N4\u002FN4A\u002FN4D machines **do not support\n    Persistent Disk** (they support Hyperdisk only), so a PVC bound to a `pd-*`\n    StorageClass cannot bind or schedule on those nodes. Events typically show\n    `FailedScheduling` with a volume node-affinity \u002F topology conflict.\n\n    -   Switch the workload to a **Hyperdisk** StorageClass (for example `type:\n        hyperdisk-balanced`) for the Gen4 node pool.\n    -   For existing Persistent Disk volumes, migrate the data to a Hyperdisk\n        volume; the original PD cannot be attached to a Gen4 node.\n    -   If the workload must keep Persistent Disk, keep it on a PD-capable\n        machine series (for example N2) via node selection. This is a\n        machine-type\u002Fdisk-type incompatibility, **not** a capacity problem, so\n        increasing disk size or quota does not help.\n\n-   **Hyperdisk Pods become unschedulable when a compute class falls back across\n    VM generations (for example N4 priority, N2 fallback), or one StorageClass\n    must serve mixed generations**: a single static disk type in the\n    StorageClass is not compatible with every machine series in the fallback\n    list, so Pods cannot bind their volume on the fallback nodes.\n\n    -   Use **automated disk type selection**: set the StorageClass\n        `parameters.type` to `dynamic` with `hyperdisk-type`, `pd-type`, and\n        `disk-type-preference`, plus `use-allowed-disk-topology: \"true\"`, so GKE\n        selects a compatible disk type per node and schedules Pods only onto\n        nodes that support it. One dynamic StorageClass can then span multiple\n        VM generations (requires the GKE versions noted in the docs).\n\n        Example dynamic StorageClass (GKE 1.35.3-gke.1290000+):\n\n        ```yaml\n        apiVersion: storage.k8s.io\u002Fv1\n        kind: StorageClass\n        metadata:\n          name: dynamic-volume\n        provisioner: pd.csi.storage.gke.io\n        volumeBindingMode: WaitForFirstConsumer\n        allowVolumeExpansion: true\n        parameters:\n          type: dynamic\n          pd-type: pd-balanced\n          hyperdisk-type: hyperdisk-balanced\n          # Preferred storage on nodes that support both PD and Hyperdisk;\n          # defaults to hyperdisk-type when omitted.\n          disk-type-preference: hyperdisk-type\n          # Best practice: schedule Pods only onto nodes that support the disk type.\n          use-allowed-disk-topology: \"true\"\n        ```\n\n-   **Mount stops responding due to the `fsGroup` setting**: A Pod configured\n    with a `securityContext.fsGroup` on a volume that contains a **large number\n    of files** makes the kubelet recursively change ownership on every file,\n    which can time out the mount. The symptom is:\n\n    ```\n    Unable to attach or mount volumes for pod; skipping pod ... timed out waiting for the condition\n    ```\n\n    Confirm by checking the Pod logs for a `Setting volume ownership for ... and\n    fsGroup set` entry, then apply one of:\n\n    -   Reduce the number of files in the volume.\n    -   Set `securityContext.fsGroupChangePolicy: OnRootMismatch` so ownership\n        is only changed when the top-level permissions do not match.\n    -   Stop using the `fsGroup` setting if it is not required.\n\n#### Disk Performance & Node Storage Pressure\n\n-   **Poor disk performance** (symptoms such as `task dockerd:... blocked for\n    more than 300 seconds`, `PLEG is not healthy`, or slow `fs: disk usage`\n    scans): the node boot disk is shared across the OS, container images, the\n    overlay filesystem, and disk-backed `emptyDir` volumes, and performance is\n    shared across all disks of the same type on the node.\n\n    -   This commonly affects nodes using **standard persistent disks smaller\n        than 200 GB**. Increase the disk size or switch to SSD, especially for\n        production.\n    -   Enable **Local SSD for ephemeral storage** on node pools whose workloads\n        frequently use `emptyDir`.\n\n-   **Slow disk operations cause Pod creation failures**: on affected node\n    versions (GKE 1.18–1.23 before the fixed patch releases), the `k8s_node\n    container-runtime` logs show `failed to reserve container name ... is\n    reserved for ...` (containerd issue #4604).\n\n    -   Mitigate with `restartPolicy: Always` or `OnFailure` in the PodSpec, and\n        increase boot-disk IOPS (larger disk or a faster disk type).\n    -   The permanent fix is containerd 1.6.0+; upgrade to a GKE version that\n        includes it.\n\n-   **`StoragePressureDetected` (high node storage pressure)**: node condition\n    `StoragePressureRootFileSystem` becomes `True` (for example, `Disk\n    \u002Fdev\u002Fnvme0n1 usage 89% exceeds threshold 85%`), caused by excessive\n    `emptyDir` writes, large image pulls, or accumulating logs.\n\n    -   Identify usage with `df -h` on the affected node (focus on\n        `\u002Fmnt\u002Fstateful_partition` and ephemeral mounts).\n    -   Remediate by using larger boot disks, adding Local SSDs for ephemeral\n        storage, setting appropriate `ephemeral-storage` requests\u002Flimits, and\n        cleaning up unused files\u002Fimages\u002Flogs.\n\n#### Storage Provisioning & Creation Failures\n\n-   **`The selected machine type ... has a fixed number of local SSD(s)`**: the\n    Local SSD count specified in `EphemeralStorageLocalSsdConfig` \u002F\n    `LocalNvmeSsdBlockConfig` does not match the fixed count included with the\n    machine type.\n\n    -   Specify a Local SSD count that matches the machine type. For\n        **third-generation** machine series, omit the Local SSD `count` flag and\n        the correct value is configured automatically.\n\n-   **Hyperdisk Storage Pools: cluster or node-pool creation fails** with\n    `ZONE_RESOURCE_POOL_EXHAUSTED` (or similar Compute Engine resource errors):\n    the target zone lacks capacity for the requested Hyperdisk Balanced disks or\n    machine type.\n\n    -   Select a new zone in the same region that has capacity and where\n        Hyperdisk Balanced Storage Pools are available. Because storage pools\n        are **zonal**, delete and recreate the pool in the new zone, then create\n        the cluster\u002Fnode pool there.\n\n#### Volume Expansion Not Reflecting in the Container\n\nVolume expansion must always be driven through the **PersistentVolumeClaim**.\nEditing the PersistentVolume directly can leave the container filesystem on the\nold size.\n\n1.  Keep the modified PersistentVolume object as it is.\n2.  Edit the **PersistentVolumeClaim** and set `spec.resources.requests.storage`\n    to a value **higher** than the current PersistentVolume size.\n3.  The kubelet then resizes the PV, PVC, and container filesystem\n    automatically. Verify inside the Pod:\n\n    ```bash\n    kubectl exec {pod_name} -n {workload_namespace} -- df -h\n    ```\n\n#### Cloud Storage FUSE Out-Of-Memory (OOM) Events\n\nIf Pods experience high memory use or OOM kills related to the Cloud Storage\nFUSE CSI driver:\n\n1.  Enable CPU\u002Fmemory snapshots by configuring **Cloud Profiler** on the Cloud\n    Storage FUSE CSI driver sidecar container.\n2.  Locate the OOM event in **Cloud Logging**, filtering by Pod:\n\n    ```\n    jsonPayload.involvedObject.name=\"{pod_name}\"\n    jsonPayload.involvedObject.kind=\"Pod\"\n    OOMKilled\n    ```\n\n    If the sidecar mounter or GCSFuse process OOMs, the Pod name is the workload\n    Pod's name; if the node driver OOMs, it is `gcsfusecsi-node-*`.\n3.  Extract the Pod UID (`jsonPayload.involvedObject.uid`) and timestamp, then\n    analyze the matching snapshot in **Cloud Profiler** using the\n    `{pod_name}_{pod_uid}` Service Version at the OOM timestamp.\n\n--------------------------------------------------------------------------------\n\n### Step 3: Propose the GitOps Correction\n\nEnforce the read-only diagnostics boundary: **do not** apply live mutations with\n`kubectl edit`, `kubectl patch`, or `kubectl apply`. Instead, present the\ncorrected StorageClass, PersistentVolumeClaim, PodSpec (`securityContext`,\n`restartPolicy`), or node-pool configuration as a reviewable patch to be applied\nthrough the user's GitOps pipeline (for example, Config Sync, Argo CD, or Flux).\n\n## References\n\n-   [Troubleshoot storage in GKE](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fstorage.md.txt)\n-   [Regional persistent disk restrictions](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Fdisks.md.txt#restrictions_2)\n-   [Configure ephemeral storage with local SSDs](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fpersistent-volumes\u002Flocal-ssd.md.txt)\n-   [Cloud Storage FUSE CSI driver sidecar (enable Profiler)](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fcloud-storage-fuse-csi-driver-sidecar.md.txt#enable-profiler)\n-   [Hyperdisk Storage Pools](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fpersistent-volumes\u002Fhyperdisk-storage-pools.md.txt)\n-   [N4 machine series storage support (Persistent Disk not supported)](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Fgeneral-purpose-machines.md.txt)\n-   [Hyperdisk machine type support](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Fdisks\u002Fhyperdisks.md.txt)\n-   [Hyperdisk automated disk type selection (dynamic StorageClass)](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fconcepts\u002Fhyperdisk.md.txt#automated_disk_type_selection)\n","# GKE Storage Troubleshooting Skill\n\nUse this skill to systematically diagnose and resolve **persistent-storage\nfailures** for workloads running on GKE — volume attach\u002Fmount errors, disk\nperformance and node storage pressure, volume expansion, storage-related\ncluster\u002Fnode-pool creation errors, and Cloud Storage FUSE memory issues. This\nskill operates non-interactively and enforces a read-only diagnostics boundary\nbefore proposing manifest or configuration corrections.\n\n> For routine storage **provisioning** and StorageClass\u002FPVC authoring, use the\n> `gke-storage` skill instead. This skill focuses on **failure diagnosis**.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:gke-storage-troubleshooting)\"`\nand append `agent-skills\u002F1.0 (skill:gke-storage-troubleshooting)` to `User-Agent` headers.\n\n## ? Diagnosis & Resolution Workflow\n\n### Step 0: Non-Interactive Context Discovery & Dry-Run Fallback\n\n1.  **Parameter Extraction**: Extract required context (`project_id`,\n    `cluster_name`, `cluster_location`, `workload_name`, `workload_namespace`,\n    `pod_name`, and the relevant `pvc_name` \u002F `pv_name` \u002F `node_name`)\n    non-interactively from the user prompt, active `SETTINGS.md`, or environment\n    defaults:\n\n    -   Default `workload_namespace` to `default` if omitted.\n    -   Infer missing cluster parameters from the active environment (`kubectl\n        config current-context` or `gcloud config get-value project`).\n\n2.  **Cluster Credentials & Fallback Mode**:\n\n    -   Attempt credential fetch: `gcloud container clusters get-credentials\n        {cluster_name} --location {cluster_location} --project {project_id}`.\n    -   **Fallback \u002F Dry-Run Mode**: If the cluster is unreachable,\n        non-existent, or live command execution fails (such as in sandboxed\n        evaluations, dry-run mode, or offline analysis):\n        -   Limit retry attempts to avoid resource exhaustion and context\n            overflow.\n        -   Immediately present the exact `kubectl` \u002F `gcloud` diagnostic\n            commands for the human operator to run.\n        -   Synthesize the root-cause analysis and output the proposed GitOps\n            correction based on the reported symptoms.\n\n--------------------------------------------------------------------------------\n\n### Step 1: Classify the Storage Symptom\n\nGather the primary signals, then jump to the **matching branch under Step 2\n(Resolution)** — you normally perform **only the one branch** that matches your\ndiagnosis, not all of them.\n\n**Diagnostic Commands:**\n\n```bash\nkubectl describe pod {pod_name} -n {workload_namespace}\nkubectl get pvc,pv -n {workload_namespace}\nkubectl get events -n {workload_namespace} --sort-by='.metadata.creationTimestamp'\nkubectl describe node {node_name}\n```\n\n-   **Pod stuck in `ContainerCreating` with an attach\u002Fmount event** → **Volume\n    Attach & Mount Failures**.\n-   **Node-level slowness, `PLEG is not healthy`, or `StoragePressureDetected`\n    events** → **Disk Performance & Node Storage Pressure**.\n-   **Cluster \u002F node-pool creation or provisioning error** → **Storage\n    Provisioning & Creation Failures**.\n-   **A resized volume is not reflected inside the container** → **Volume\n    Expansion Not Reflecting in the Container**.\n-   **Cloud Storage FUSE Pod \u002F sidecar OOM** → **Cloud Storage FUSE\n    Out-Of-Memory (OOM) Events**.\n\n--------------------------------------------------------------------------------\n\n### Step 2: Resolution\n\nPerform **only the branch that matches your Step 1 diagnosis**. These branches\nare mutually exclusive alternatives, not sequential steps.\n\n#### Volume Attach & Mount Failures\n\n-   **`Error 400: Cannot attach RePD to an optimized VM`**: Regional persistent\n    disks are restricted from being used with **memory-optimized** or\n    **compute-optimized** machine types.\n\n    -   If a regional PD is not a hard requirement, switch the workload to a\n        **non-regional persistent disk** StorageClass.\n    -   If a regional PD **is** required, use **taints and tolerations** so that\n        Pods needing regional PDs are scheduled onto a node pool that does\n        **not** use optimized machine types.\n\n-   **Pods stay `Pending` \u002F `FailedScheduling` after a node pool is moved to a\n    4th-generation (N4, N4A, N4D) machine series while the workload uses a\n    Persistent Disk StorageClass**: N4\u002FN4A\u002FN4D machines **do not support\n    Persistent Disk** (they support Hyperdisk only), so a PVC bound to a `pd-*`\n    StorageClass cannot bind or schedule on those nodes. Events typically show\n    `FailedScheduling` with a volume node-affinity \u002F topology conflict.\n\n    -   Switch the workload to a **Hyperdisk** StorageClass (for example `type:\n        hyperdisk-balanced`) for the Gen4 node pool.\n    -   For existing Persistent Disk volumes, migrate the data to a Hyperdisk\n        volume; the original PD cannot be attached to a Gen4 node.\n    -   If the workload must keep Persistent Disk, keep it on a PD-capable\n        machine series (for example N2) via node selection. This is a\n        machine-type\u002Fdisk-type incompatibility, **not** a capacity problem, so\n        increasing disk size or quota does not help.\n\n-   **Hyperdisk Pods become unschedulable when a compute class falls back across\n    VM generations (for example N4 priority, N2 fallback), or one StorageClass\n    must serve mixed generations**: a single static disk type in the\n    StorageClass is not compatible with every machine series in the fallback\n    list, so Pods cannot bind their volume on the fallback nodes.\n\n    -   Use **automated disk type selection**: set the StorageClass\n        `parameters.type` to `dynamic` with `hyperdisk-type`, `pd-type`, and\n        `disk-type-preference`, plus `use-allowed-disk-topology: \"true\"`, so GKE\n        selects a compatible disk type per node and schedules Pods only onto\n        nodes that support it. One dynamic StorageClass can then span multiple\n        VM generations (requires the GKE versions noted in the docs).\n\n        Example dynamic StorageClass (GKE 1.35.3-gke.1290000+):\n\n        ```yaml\n        apiVersion: storage.k8s.io\u002Fv1\n        kind: StorageClass\n        metadata:\n          name: dynamic-volume\n        provisioner: pd.csi.storage.gke.io\n        volumeBindingMode: WaitForFirstConsumer\n        allowVolumeExpansion: true\n        parameters:\n          type: dynamic\n          pd-type: pd-balanced\n          hyperdisk-type: hyperdisk-balanced\n          # Preferred storage on nodes that support both PD and Hyperdisk;\n          # defaults to hyperdisk-type when omitted.\n          disk-type-preference: hyperdisk-type\n          # Best practice: schedule Pods only onto nodes that support the disk type.\n          use-allowed-disk-topology: \"true\"\n        ```\n\n-   **Mount stops responding due to the `fsGroup` setting**: A Pod configured\n    with a `securityContext.fsGroup` on a volume that contains a **large number\n    of files** makes the kubelet recursively change ownership on every file,\n    which can time out the mount. The symptom is:\n\n    ```\n    Unable to attach or mount volumes for pod; skipping pod ... timed out waiting for the condition\n    ```\n\n    Confirm by checking the Pod logs for a `Setting volume ownership for ... and\n    fsGroup set` entry, then apply one of:\n\n    -   Reduce the number of files in the volume.\n    -   Set `securityContext.fsGroupChangePolicy: OnRootMismatch` so ownership\n        is only changed when the top-level permissions do not match.\n    -   Stop using the `fsGroup` setting if it is not required.\n\n#### Disk Performance & Node Storage Pressure\n\n-   **Poor disk performance** (symptoms such as `task dockerd:... blocked for\n    more than 300 seconds`, `PLEG is not healthy`, or slow `fs: disk usage`\n    scans): the node boot disk is shared across the OS, container images, the\n    overlay filesystem, and disk-backed `emptyDir` volumes, and performance is\n    shared across all disks of the same type on the node.\n\n    -   This commonly affects nodes using **standard persistent disks smaller\n        than 200 GB**. Increase the disk size or switch to SSD, especially for\n        production.\n    -   Enable **Local SSD for ephemeral storage** on node pools whose workloads\n        frequently use `emptyDir`.\n\n-   **Slow disk operations cause Pod creation failures**: on affected node\n    versions (GKE 1.18–1.23 before the fixed patch releases), the `k8s_node\n    container-runtime` logs show `failed to reserve container name ... is\n    reserved for ...` (containerd issue #4604).\n\n    -   Mitigate with `restartPolicy: Always` or `OnFailure` in the PodSpec, and\n        increase boot-disk IOPS (larger disk or a faster disk type).\n    -   The permanent fix is containerd 1.6.0+; upgrade to a GKE version that\n        includes it.\n\n-   **`StoragePressureDetected` (high node storage pressure)**: node condition\n    `StoragePressureRootFileSystem` becomes `True` (for example, `Disk\n    \u002Fdev\u002Fnvme0n1 usage 89% exceeds threshold 85%`), caused by excessive\n    `emptyDir` writes, large image pulls, or accumulating logs.\n\n    -   Identify usage with `df -h` on the affected node (focus on\n        `\u002Fmnt\u002Fstateful_partition` and ephemeral mounts).\n    -   Remediate by using larger boot disks, adding Local SSDs for ephemeral\n        storage, setting appropriate `ephemeral-storage` requests\u002Flimits, and\n        cleaning up unused files\u002Fimages\u002Flogs.\n\n#### Storage Provisioning & Creation Failures\n\n-   **`The selected machine type ... has a fixed number of local SSD(s)`**: the\n    Local SSD count specified in `EphemeralStorageLocalSsdConfig` \u002F\n    `LocalNvmeSsdBlockConfig` does not match the fixed count included with the\n    machine type.\n\n    -   Specify a Local SSD count that matches the machine type. For\n        **third-generation** machine series, omit the Local SSD `count` flag and\n        the correct value is configured automatically.\n\n-   **Hyperdisk Storage Pools: cluster or node-pool creation fails** with\n    `ZONE_RESOURCE_POOL_EXHAUSTED` (or similar Compute Engine resource errors):\n    the target zone lacks capacity for the requested Hyperdisk Balanced disks or\n    machine type.\n\n    -   Select a new zone in the same region that has capacity and where\n        Hyperdisk Balanced Storage Pools are available. Because storage pools\n        are **zonal**, delete and recreate the pool in the new zone, then create\n        the cluster\u002Fnode pool there.\n\n#### Volume Expansion Not Reflecting in the Container\n\nVolume expansion must always be driven through the **PersistentVolumeClaim**.\nEditing the PersistentVolume directly can leave the container filesystem on the\nold size.\n\n1.  Keep the modified PersistentVolume object as it is.\n2.  Edit the **PersistentVolumeClaim** and set `spec.resources.requests.storage`\n    to a value **higher** than the current PersistentVolume size.\n3.  The kubelet then resizes the PV, PVC, and container filesystem\n    automatically. Verify inside the Pod:\n\n    ```bash\n    kubectl exec {pod_name} -n {workload_namespace} -- df -h\n    ```\n\n#### Cloud Storage FUSE Out-Of-Memory (OOM) Events\n\nIf Pods experience high memory use or OOM kills related to the Cloud Storage\nFUSE CSI driver:\n\n1.  Enable CPU\u002Fmemory snapshots by configuring **Cloud Profiler** on the Cloud\n    Storage FUSE CSI driver sidecar container.\n2.  Locate the OOM event in **Cloud Logging**, filtering by Pod:\n\n    ```\n    jsonPayload.involvedObject.name=\"{pod_name}\"\n    jsonPayload.involvedObject.kind=\"Pod\"\n    OOMKilled\n    ```\n\n    If the sidecar mounter or GCSFuse process OOMs, the Pod name is the workload\n    Pod's name; if the node driver OOMs, it is `gcsfusecsi-node-*`.\n3.  Extract the Pod UID (`jsonPayload.involvedObject.uid`) and timestamp, then\n    analyze the matching snapshot in **Cloud Profiler** using the\n    `{pod_name}_{pod_uid}` Service Version at the OOM timestamp.\n\n--------------------------------------------------------------------------------\n\n### Step 3: Propose the GitOps Correction\n\nEnforce the read-only diagnostics boundary: **do not** apply live mutations with\n`kubectl edit`, `kubectl patch`, or `kubectl apply`. Instead, present the\ncorrected StorageClass, PersistentVolumeClaim, PodSpec (`securityContext`,\n`restartPolicy`), or node-pool configuration as a reviewable patch to be applied\nthrough the user's GitOps pipeline (for example, Config Sync, Argo CD, or Flux).\n\n## References\n\n-   [Troubleshoot storage in GKE](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fstorage.md.txt)\n-   [Regional persistent disk restrictions](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Fdisks.md.txt#restrictions_2)\n-   [Configure ephemeral storage with local SSDs](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fpersistent-volumes\u002Flocal-ssd.md.txt)\n-   [Cloud Storage FUSE CSI driver sidecar (enable Profiler)](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fcloud-storage-fuse-csi-driver-sidecar.md.txt#enable-profiler)\n-   [Hyperdisk Storage Pools](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fpersistent-volumes\u002Fhyperdisk-storage-pools.md.txt)\n-   [N4 machine series storage support (Persistent Disk not supported)](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Fgeneral-purpose-machines.md.txt)\n-   [Hyperdisk machine type support](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Fdisks\u002Fhyperdisks.md.txt)\n-   [Hyperdisk automated disk type selection (dynamic StorageClass)](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fconcepts\u002Fhyperdisk.md.txt#automated_disk_type_selection)\n",{"name":5,"metadata":49,"description":7},{"version":50,"category":51},"1.1.1","Storage","main","bb9b3f464aae37af360d079c1d863524955b0363","skills\u002Fcloud\u002Fgke-storage-troubleshooting",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add google\u002Fskills --skill gke-storage-troubleshooting",{"tool":67,"command":68},"bunx","bunx skills add google\u002Fskills --skill gke-storage-troubleshooting",{"tool":70,"command":71},"pnpm","pnpm dlx skills add google\u002Fskills --skill gke-storage-troubleshooting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-storage-troubleshooting\u002FSKILL.md",true,[75],{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fattribution.md","REFERENCE","参考文档",1921,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-storage-troubleshooting\u002Freferences\u002Fattribution.md",[82,90,97,104,111,118],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":89},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":89},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":89},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":89},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":89},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":89},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting","Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[]]