This page provides pre-configured Google Kubernetes Engine YAML files to help you optimize Cloud Storage FUSE performance for your specific workload. Whether you're using Cloud GPUs or Cloud TPU for training, serving, or checkpointing, you can use the sample configurations provided in this page to quickly deploy your GKE pods and access your Cloud Storage bucket.
Configure and deploy GKE workloads with Cloud Storage FUSE using sample YAML files
To utilize sample configurations, perform the following steps:
Verify that the Cloud Storage FUSE CSI driver for Google Kubernetes Engine is running on GKE clusters of GKE versions 1.32.2-gke.1297001 or later.
Verify that the Google Kubernetes Engine service account possesses the necessary permissions to access the target Cloud Storage bucket.
Locate the sample configurations you want to apply based on your machine type and workload by using one of the following YAML files:
GPU
Use one of the following Cloud GPUs-specific YAML files based on your workload type:
TPU
Use one of the following Cloud TPU-specific YAML files based on your workload type:
Deploy the corresponding pod specification that accesses the PersistentVolumeClaim using one the following YAML files:
GPU
Deploy the corresponding Cloud GPUs-specific pod specification that accesses the PersistentVolumeClaim based on your workload type:
TPU
Deploy the corresponding Cloud TPU-specific pod specification that accesses the PersistentVolumeClaim based on your workload type:
Deploy the PersistentVolume and PersistentVolumeClaim by applying the PersistentVolume file.
The GKE pod admission webhook inspects the PersistentVolume's attributes to apply potential optimizations such as the injection of sidecar containers before the pod is scheduled.
kubectl apply -f PERSISTENT_VOLUME_YAML_FILE_NAME
Where:
PERSISTENT_VOLUME_YAML_FILE_NAME
is the name of the PersistentVolume YAML filename. For example,serving-pv.yaml
.
Deploy the pod specification that references the PersistentVolumeClaim:
kubectl apply -f POD_YAML_FILE_NAME
Where:
POD_YAML_FILE_NAME
is the name of the pod YAML configuration file. For example,serving-pod.yaml
.