Gke Storage

by google55b4e13eba6dNo licenseListed Oct 8, 2026Updated Oct 8, 2026

Manages GKE storage, including PVCs, PersistentVolumes, and Filestore. Use when configuring GKE storage or creating PVCs. For GCS FUSE mounts, use google-cloud-storage-fuse. For diagnosing storage failures (volume attach/mount errors, disk performance/node storage pressure, or Cloud Storage FUSE OOM), use gke-storage-troubleshooting. Don't use for database administration or replication strategies outside volume provisioning context.

FeaturedInstructions onlyDevOps & Cloud
AI-generated overview

Reference guidance for configuring GKE storage: StorageClasses, PVCs, PersistentVolumes, Filestore, and volume expansion.

What it does
Provides reference instructions for configuring storage on Google Kubernetes Engine clusters, covering CSI drivers, built-in and custom StorageClasses, PersistentVolumeClaim manifests for block and shared file storage, GCS bucket mounts, and volume expansion. It also lists capacity and scheduling constraints for stateful workloads and best practices such as enabling volume expansion and using regional persistent disks. It produces configuration guidance and YAML examples rather than running scripts.
When to use it
Use when configuring GKE storage or creating PVCs, choosing StorageClasses or disk types, or planning volume expansion and stateful workload capacity. It is not intended for Cloud Storage FUSE mounts, storage failure diagnosis, or database administration outside volume provisioning.
Requirements
No scripts ship with the skill; it is instructions only. It references MCP tools (apply_k8s_manifest, get_k8s_resource, describe_k8s_resource, get_cluster) and kubectl for applying manifests and patching PVCs, and GCS FUSE mounts require Workload Identity with storage.objectViewer on the bucket.

GKE Storage

Routing Note: For Cloud Storage FUSE (gcsfuse) mounts or the GKE gcsfuse.csi.storage.gke.io CSI driver, open google-cloud-storage-fuse/SKILL.md.

This reference covers storage configuration for GKE clusters including persistent disks, file storage, and cloud storage integration.

MCP Tools: apply_k8s_manifest, get_k8s_resource, describe_k8s_resource, get_cluster

Golden Path Storage Defaults

The golden path Autopilot config enables these CSI drivers:

DriverGolden PathAccess ModeUse Case
Compute EngineEnabled (default)ReadWriteOnceBlock storage for
: Persistent Disk : : : databases, :
: CSI : : : single-pod workloads :
Google CloudEnabledReadWriteManyShared NFS for
: Filestore CSI : : : multi-pod access :
Cloud StorageEnabledReadWriteMany /Mount GCS buckets as
: FUSE CSI : : ReadOnlyMany : volumes :
ParallelstoreEnabledReadWriteManyHigh-performance
: CSI : : : parallel file system :
Boot disk typepd-balancedN/ANode boot disks

StorageClasses

Default StorageClasses

GKE provides built-in StorageClasses:

StorageClassDisk TypeUse Case
standard-rwopd-standardCost-effective, low IOPS
premium-rwopd-ssdHigh IOPS, databases
standard-rwxFilestore (Basic HDD)Shared NFS
premium-rwxFilestore (Basic SSD)Shared NFS, higher performance

Custom StorageClass

yaml
apiVersion: storage.k8s.io/v1kind: StorageClassmetadata:  name: fast-regionalprovisioner: pd.csi.storage.gke.ioparameters:  type: pd-ssd  replication-type: regional-pd    # Replicate across 2 zonesvolumeBindingMode: WaitForFirstConsumerallowVolumeExpansion: true         # Always enable for production

PersistentVolumeClaims

Block Storage (ReadWriteOnce)

yaml
apiVersion: v1kind: PersistentVolumeClaimmetadata:  name: database-pvcspec:  accessModes:  - ReadWriteOnce  storageClassName: premium-rwo  resources:    requests:      storage: 100Gi

Shared File Storage (ReadWriteMany via Filestore)

yaml
apiVersion: v1kind: PersistentVolumeClaimmetadata:  name: shared-dataspec:  accessModes:  - ReadWriteMany  storageClassName: standard-rwx  resources:    requests:      storage: 1Ti    # Filestore minimum is 1 TiB for Basic tier

GCS Bucket Mount (Cloud Storage FUSE)

Mount a GCS bucket as a volume without a PVC:

yaml
apiVersion: v1kind: Podmetadata:  name: gcs-reader  annotations:    gke-gcsfuse/volumes: "true"spec:  containers:  - name: reader    image: busybox    command: ["ls", "/data"]    volumeMounts:    - name: gcs-bucket      mountPath: /data  volumes:  - name: gcs-bucket    csi:      driver: gcsfuse.csi.storage.gke.io      readOnly: true      volumeAttributes:        bucketName: <BUCKET_NAME>

Requires Workload Identity for the pod's service account to have storage.objectViewer on the bucket.

Volume Expansion

If allowVolumeExpansion: true is set on the StorageClass, resize by updating the PVC:

bash
# kubectlkubectl patch pvc <PVC_NAME> -p '{"spec":{"resources":{"requests":{"storage":"200Gi"}}}}'
# MCP (preferred)patch_k8s_resource(parent="...", resourceType="persistentvolumeclaim", name="<PVC_NAME>",  patch='{"spec":{"resources":{"requests":{"storage":"200Gi"}}}}')

Kubernetes automatically resizes the filesystem.

Stateful Storage & Capacity Constraints

When configuring storage for stateful workloads, keep the following capacity and scheduling constraints in mind:

  • Existing zonal PVs pin the workload to a zone: A Pod that uses an existing zonal PersistentVolume (for example, in europe-north1-b) can only run in that zone. The cluster autoscaler can't work around a capacity shortage by adding nodes in another zone; any fallback must be in the same zone.
  • Use automated disk type selection and topology-aware scheduling for new workloads: Use volumeBindingMode: WaitForFirstConsumer so the volume is created in the zone where the Pod lands. When a ComputeClass mixes machine generations (for example, C4/N4 priority with N2 fallback), configure the StorageClass for automated disk type selection (parameters.type: dynamic with pd-type: pd-balanced, hyperdisk-type: hyperdisk-balanced, disk-type-preference: hyperdisk-type, and use-allowed-disk-topology: "true", GKE 1.35.3-gke.1290000+; or use-allowed-disk-topology: "true" on GKE 1.34.1-gke.2541000+) so the autoscaler only picks nodes that support the disk type and new volumes get a compatible disk type per node.
  • Same-zone PD-type swaps rarely help: Switching a same-zone fallback from pd-ssd to pd-balanced is unlikely to resolve a zonal capacity shortage, because both can be affected by the same zonal constraints. Prefer a fallback to a Hyperdisk-capable machine series (for example, C3 or N4) with hyperdisk-balanced.
  • Check Hyperdisk quotas first: Hyperdisk quotas (for example, HDB-TOTAL-GB, throughput, and IOPS) are separate from Persistent Disk quotas. Verify the regional limits before recommending a Hyperdisk Balanced fallback.

Best Practices

  1. Always enable volume expansion: Set allowVolumeExpansion: true on all StorageClasses
  2. Use regional PDs for production: replication-type: regional-pd replicates across 2 zones for HA
  3. Use WaitForFirstConsumer: Ensures the PV is provisioned in the same zone as the pod
  4. Choose the right disk type: pd-ssd for databases, pd-balanced (golden path default) for general use, pd-standard for cold storage
  5. Use Filestore for shared access: When multiple pods need to read/write the same files
  6. Use GCS FUSE for data pipelines: Mount buckets directly for ML training data, logs, etc.
  7. Back up PVCs: Use Backup for GKE (see the gke-backup-dr skill) to protect persistent data

Source and attribution

Source:google/skillsinskills/cloud/gke-storageat commit55b4e13

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

More from google/skills

Google Cloud Solution N Tier Serverless Web App

google

Featured

Guides design and Terraform implementation of secure n-tier serverless web apps on Google Cloud.

DevOps & CloudOct 8, 2026

Google Cloud Solution Hybrid Search Alloydb

google

Featured

Discovers requirements and generates architectural, design, and deployment guidance for dynamic hybrid search systems by combining semantic search and keyword search. Optimized for AlloyDB hybrid search use cases in Google Cloud. Use when users need vector search combined with structured SQL filtering, faceted attributes, semantic reranking, in-database AI validation, or serverless hosting across transactional relational databases, analytical data warehouses, or managed database engines. DON'T use this skill for simple keyword-only search, or when a standalone non-relational vector database is required.

Awaiting classificationOct 8, 2026

Google Cloud Solution Architecture

google

Featured

Interactively discovers requirements and designs holistic, multi-product system architectures, solution blueprints, and deployment recommendations for complex workloads on Google Cloud. Use when designing end-to-end cloud solutions, selecting and integrating Google Cloud services, generating architecture diagrams, or conducting requirements discovery for new cloud workloads or migrations. Don't use for single-product tasks (use product-specific skills), initial onboarding or authentication (use google-cloud-recipe-*), Well-Architected Framework reviews or audits (use google-cloud-waf-*), or workloads covered by specialized solution skills.

Awaiting classificationOct 8, 2026

Google Cloud Solution Agentic Ai Data Science Workflow

google

Featured

Designs a tailored multi-product agentic data science architecture on Google Cloud that incorporates opinionated best practices. Use when architecting multi-product solutions for agent-based data analytics or ML workloads. Don't use for simple queries, non-agentic pipelines, general cloud reviews, or writing agent code.

Awaiting classificationOct 8, 2026

Google Cloud Solution Agentic Ai Borderless Data Lakehouse

google

Featured

Discovers requirements and designs a borderless open data lakehouse using Lakehouse for Apache Iceberg and BigQuery data agents. Use when architecting multi-cloud storage infrastructure (Cloud Storage, AWS S3, Azure Blob), establishing ingestion and AI serving subsystems, configuring Cross-Cloud Interconnect, or deploying Gemini Enterprise Agent Platform and BigQuery data agents. Don't use for single-cloud data warehouses, or when the focus is on Knowledge Catalog metadata governance and Spark-driven IDE analytics workflows (use google-cloud-solution-agentic-analytics-spark-knowledge-catalog instead).

Awaiting classificationOct 8, 2026

Google Cloud Solution Agentic Ai Bidirectional Streaming

google

Featured

Guides agents to interactively discover customer requirements for live, bidirectional multi-agent AI systems that process continuous streams of multimodal data for real-time technical guidance and safety monitoring. Generates a custom Google Cloud solution that uses opinionated best practices and architecture guidance. Use when users need agentic assistance to design and create a multi-product solution in the cloud for live bidirectional multimodal streaming workloads. Don't use for simple text-based chat applications or workloads without real-time streaming requirements.

Awaiting classificationOct 8, 2026