Warning
This is a beta feature available only per request for SAP-internal teams.
This tutorial explains how to initiate a restore operation for the ReadWriteMany (RWX) volumes in Amazon Web Services (AWS).
- You have the Cloud Manager module added.
- You have created an AwsNfsVolume. See Use Network File System in Amazon Web Services.
- You have created an AwsNfsVolumeBackup. See Back Up Network File System Volumes in Amazon Web Services.
Note
The following examples assume that the AwsNfsVolumeBackup is named my-backup
and is in the same namespace as the AwsNfsVolumeRestore resource.
-
Export the namespace as an environment variable.
export NAMESPACE={NAMESPACE_NAME}
-
Create an AwsNfsVolumeRestore resource.
cat <<EOF | kubectl -n $NAMESPACE apply -f - apiVersion: cloud-resources.kyma-project.io/v1beta1 kind: AwsNfsVolumeRestore metadata: name: my-restore spec: source: backup: name: my-backup EOF
-
Wait for the AwsNfsVolumeRestore to be in the
Done
state and have theReady
condition.kubectl -n $NAMESPACE wait --for=condition=Ready awsnfsvolumerestore/my-restore --timeout=600s
Once the AwsNfsVolumeRestore is completed, you should see the following message:
awsnfsvolumerestore.cloud-resources.kyma-project.io/my-restore condition met
To clean up, remove the created AwsNfsVolumeRestore:
kubectl delete -n $NAMESPACE awsnfsvolumerestore my-restore