Fix GCP GKE Kasten Backup Errors
When working with GCP GKE, you may encounter a configuration error that prevents your deployment from working. This guide explains the most common mistake with kasten backup and shows the exact fix.
A Common Mistake
Deploying Kasten K10 for GKE backup without configuring the correct storage class for PVC snapshots, causing snapshot failures.
The incorrect command:
helm install kasten kasten/k10 --namespace=kasten-io --set secrets.azureStorageAccount=myaccount --set secrets.azureStorageKey=mykey
Error output:
Kasten installed but cannot create snapshots:
k10 dashboard shows: Snapshot failed: no compatible storage class found for volume snapshotting. The cluster does not have a VolumeSnapshotClass configured. GKE Compute Engine persistent disks support snapshots but need VolumeSnapshotClass.
The Correct Approach
The right way to configure kasten backup in GCP GKE:
kubectl apply -f - <<EOF
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
name: csi-gce-pd-snapshot-class
driver: pd.csi.storage.gke.io
deletionPolicy: Delete
EOF
helm install kasten kasten/k10 --namespace=kasten-io --set snapshots.createVolumeSnapshotClass=false --set snapshots.volumeSnapshotClass=csi-gce-pd-snapshot-class
Successful result:
VolumeSnapshotClass created.
Kasten deployed with correct snapshot class.
Backup policies work correctly. Snapshots are created and exported to GCS for long-term retention.
How to Prevent This
GKE CSI driver supports volume snapshots. Create VolumeSnapshotClass before deploying Kasten. Use pd.csi.storage.gke.io driver. DeletionPolicy: Retain (keep snapshots if PVC deleted) or Delete. Test snapshot with kubectl apply -f snapshot-test.yaml. Kasten supports export to S3/GCS for off-cluster backups.
FAQ
Built by the developers of Doda Browser, DodaZIP, and Durga Antivirus Pro. Secure your cloud with DodaTech.
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro