apigee hybrid Cassandra back up error

This error details as below when running following command for CS backup

kubectl create job -n apigee --from=cronjob/apigee-cassandra-backup cs-backup

cs-backup pod goes to crashloopbackoff and error and after some time does not show up in kubectl get pod with required namespace

When running following command

kubectl logs cs-backup-123 -n apigee

error: resource mapping not found for name: "xxxxx-snapshot" namespace: "" from "/opt/xxxx/.cassandra/snapshot-class.yaml": no matches for kind "VolumeSnapshotClass" in version "snapshot.storage.k8s.io/v1beta1" ensure CRDs are installed first

Failed to apply snapshot class configuration : error code 0

# Template class for Hybrid CSI snapshots

apiVersion: snapshot.storage.k8s.io/v1beta1

kind: VolumeSnapshotClass

metadata:

  name: xxxxx-snapshot

driver: xxx.csi.aws.com

deletionPolicy: Delete

@dino @dhtx @dknezic 

Solved Solved
0 2 284
1 ACCEPTED SOLUTION

What output do the following commands show?

kubectl get pv

kubectl get sc

kubectl get pvc -n apigee -o json

 

View solution in original post

2 REPLIES 2

What output do the following commands show?

kubectl get pv

kubectl get sc

kubectl get pvc -n apigee -o json

 

Hi, 
I have a similar error. What was the issue?