Solved

Kubernetes export with Kasten failed

  • 15 November 2021
  • 3 comments
  • 406 views

Hi

I have AWS eks cluster that I try to export to S3 bucket.

Kubernetes version: 1.19
Kasten version: 4.5.2
StorageClass: ebs-cs. Deriver: EBS CSI.

Kasten installed with helm"
```
helm install k10 kasten/k10 --namespace=kasten-io --set secrets.awsAccessKeyId="<access_key>"  --set secrets.awsSecretAccessKey="<secret_key"
```

Additional resources installed:
```
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml
```

VolumeSnapshotClass created:

```
apiVersion: snapshot.storage.k8s.io/v1beta1
kind: VolumeSnapshotClass
metadata:
  name: test-snapclass
  annotations:
    k10.kasten.io/is-snapshot-class: "true"
driver: ebs.csi.aws.com
deletionPolicy: Delete
```

I'm able to run backup using Kasten dashboard, but while I try to export application - I get following error:

```
message: 'Failed to create VolumeSnapshotClass:
          k10-clone-test-snapclass:
          VolumeSnapshotClass.snapshot.storage.k8s.io
          "k10-clone-test-snapclass" is invalid:
          parameters: Invalid value: "null": parameters
          in body must be of type object: "null"'
```

icon

Best answer by EBrockman 19 November 2021, 19:07

View original

3 comments

Userlevel 3
Badge +1

Hello 

Thanks for contacting Kasten Support. Could you please provide the results for the command below.

 

kubectl get volumesnapshotclass -A

 

Thanks

Emmanuel

(⎈ |vv-qa:default)maximnikolaev@MaximN-MBP velero % kubectl get volumesnapshotclasses -A
NAME DRIVER DELETIONPOLICY AGE
test-snapclass ebs.csi.aws.com Delete 11s
(⎈ |vv-qa:default)maximnikolaev@MaximN-MBP velero % kubectl describe volumesnapshotclass test-snapclass
Name: test-snapclass
Namespace:
Labels: <none>
Annotations: k10.kasten.io/is-snapshot-class: true
API Version: snapshot.storage.k8s.io/v1
Deletion Policy: Delete
Driver: ebs.csi.aws.com
Kind: VolumeSnapshotClass
Metadata:
Creation Timestamp: 2021-11-16T08:10:05Z
Generation: 1
Managed Fields:
API Version: snapshot.storage.k8s.io/v1
Fields Type: FieldsV1
fieldsV1:
f:deletionPolicy:
f:driver:
f:metadata:
f:annotations:
.:
f:k10.kasten.io/is-snapshot-class:
f:kubectl.kubernetes.io/last-applied-configuration:
Manager: kubectl-client-side-apply
Operation: Update
Time: 2021-11-16T08:10:05Z
Resource Version: 368697066
Self Link: /apis/snapshot.storage.k8s.io/v1/volumesnapshotclasses/test-snapclass
UID: 5e286e7a-c585-47b1-ba2d-a958f6062eae
Events: <none>

 

Userlevel 3
Badge +1

Hello Maximn,

Thanks for contacting Kasten Support. Could you please provide the debug logs so that we may have a better understanding of your environment. The command is below.

curl -s https://docs.kasten.io/tools/k10_debug.sh | bash;

Thanks

Emmanuel

Comment