Skip to content

Commit b911f08

Browse files
committed
Created PVC Migration.
1 parent c3d80d6 commit b911f08

File tree

9 files changed

+13
-10
lines changed

9 files changed

+13
-10
lines changed

EKS/Migrate-Backup-EKS-Applications/README.md renamed to EKS/Backup-EKS-Applications-with-Trident-Protect/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Migrate and Backup EKS Applications with Trident Protect
1+
# Backup EKS Applications with Trident Protect
22

3-
This is a sample for setting up your Kubernetes application to be backed up by Trident Protect with an option to migrate it from one storage class to another.
3+
This is a sample for setting up your Kubernetes application to be backed up by Trident Protect.
44

55
## Prerequisites:
66
The following items should be already be deployed before install Trident Protect.
@@ -19,15 +19,15 @@ The following are the steps required before you can use Trident Protect to backu
1919

2020
1. [Configure Trident Backend](#1-make-sure-trident-backend-is-configured-correctly)
2121
1. [Configure Storage Classes for Trident storage types](#2-make-sure-trident-csi-drivers-for-nas-and-san-are-installed)
22-
1. [Install the Kubnernettes external snapshotter](#3-install-the-kubernetes-external-snapshotter)
22+
1. [Install the Kubernetes external snapshotter](#3-install-the-kubernetes-external-snapshotter)
2323
1. [Create VolumeStoraeClass for Storage Provider](#4-create-volumestorageclasses-for-your-storage-provider)
2424
1. [Install Trident Protect](#5-install-trident-protect)
2525
1. [Create S3 Bucket](#6-create-private-s3-bucket-for-backup-data-and-metadata)
2626
1. [Create Kubernetes secret for S3 bucket](#7-create-a-kubernetes-secret-for-the-s3-bucket)
2727

2828
### 1. Make sure Trident Backend is configured correctly
2929

30-
Run the follwing kubectl commands to check if TridentBackendConfig for ontap-san and ontap-nas exists and configured correctly. These commands should output the name of any matching TridentBackendConfigs:
30+
Run the following kubectl commands to confirm that the TridentBackendConfig for ontap-san and ontap-nas exist and are configured correctly. These commands should output the name of any matching TridentBackendConfigs:
3131

3232
#### SAN Backend
3333
```bash
@@ -42,16 +42,16 @@ kubectl get tbc -n trident -o jsonpath='{.items[?(@.spec.storageDriverName=="ont
4242
If no matching TridentBackendConfig resources are found, you will need to create them. Refer to the prerequisites section above for more information on how to do that.
4343

4444
### 2. Make Sure Trident CSI Drivers for NAS and SAN are Installed
45-
Run the follwing kubectl commands to check that a storageclass exist for both SAN and NAS type storage.
45+
Run the following kubectl commands to check that a storage class exist for both SAN and NAS type storage.
4646

4747
#### SAN StorageClass
48-
Checks for StorageClasses in Kubernetes that use 'ontap-san' as their backend type. It outputs the name of any matching StorageClass:
48+
Checks for storage classes in Kubernetes that use 'ontap-san' as their backend type. It outputs the name of any matching StorageClass:
4949
```bash
5050
kubectl get storageclass -o jsonpath='{.items[?(@.parameters.backendType=="ontap-san")].metadata.name}'
5151
```
5252

5353
#### NAS Driver
54-
Checks for StorageClasses in Kubernetes that use 'ontap-nas' as their backend type. It outputs the name of any matching StorageClass:
54+
Checks for storage classes in Kubernetes that use 'ontap-nas' as their backend type. It outputs the name of any matching StorageClass:
5555
```bash
5656
kubectl get storageclass -o jsonpath='{.items[?(@.parameters.backendType=="ontap-nas")].metadata.name}'
5757
```
@@ -102,7 +102,7 @@ kubectl apply -f <VolumeSnapshotClass.yaml>
102102
```
103103

104104
### 5. Install Trident Protect
105-
Execute the following commands to install Trident Protect. For more info please consult official [Trident Protect documentation](https://docs.netapp.com/us-en/trident/trident-protect/trident-protect-installation.html).
105+
Execute the following commands to install Trident Protect. For more information please consult official [Trident Protect documentation](https://docs.netapp.com/us-en/trident/trident-protect/trident-protect-installation.html).
106106

107107
```markdown
108108
helm repo add netapp-trident-protect https://netapp.github.io/trident-protect-helm-chart
@@ -247,7 +247,7 @@ There are two ways to restore a backup:
247247
- [Restore backup to a different namespace](#restore-backup-to-a-different-namespace)
248248

249249
### Restore backup to the same namespace
250-
To restore your appilcation in the same namespace, create an `BackupInPlaceRestore` configuration file named `trident-restore-inplace.yaml` with the following contents:
250+
To restore your application in the same namespace, create an `BackupInPlaceRestore` configuration file named `trident-restore-inplace.yaml` with the following contents:
251251

252252
```markdown
253253
apiVersion: protect.trident.netapp.io/v1
@@ -326,7 +326,8 @@ kubectl get backuprestore -n <DESTINATION NAMESPACE> <APP RESTORE NAME>
326326
## Final Notes
327327
There are a lot of other features and options available with Trident Protect that are not covered here, for example:
328328
- Creating zero space snapshots of your application.
329-
- Restoring backups to a different storage class and therefore migrate the data from one storage class to another. You can refer to this [PV Migrate with Trident Protect](https://github.com/NetApp/FSx-ONTAP-samples-scripts/tree/main/EKS/FSxN-as-PVC-for-EKS) for an example of how to do that.
329+
- Restoring backups to a different storage class and therefore migrate the data from one storage class to another.
330+
You can refer to this [PV Migrate with Trident Protect](https://github.com/NetApp/FSx-ONTAP-samples-scripts/tree/main/EKS/PV-Migrate-with-Trident-Protect) for an example of how to do that.
330331
- Scheduling backups.
331332
- Replicating backups to another FSxN file system with SnapMirror.
332333

EKS/Migrate-Backup-EKS-Applications/ebs-volume-storage-class.yaml renamed to EKS/Backup-EKS-Applications-with-Trident-Protect/ebs-volume-storage-class.yaml

File renamed without changes.

EKS/Migrate-Backup-EKS-Applications/trident-application.yaml renamed to EKS/Backup-EKS-Applications-with-Trident-Protect/trident-application.yaml

File renamed without changes.

EKS/Migrate-Backup-EKS-Applications/trident-backup.yaml renamed to EKS/Backup-EKS-Applications-with-Trident-Protect/trident-backup.yaml

File renamed without changes.

EKS/Migrate-Backup-EKS-Applications/trident-restore-diff-ns.yaml renamed to EKS/Backup-EKS-Applications-with-Trident-Protect/trident-restore-diff-ns.yaml

File renamed without changes.

EKS/Migrate-Backup-EKS-Applications/trident-restore-inplace.yaml renamed to EKS/Backup-EKS-Applications-with-Trident-Protect/trident-restore-inplace.yaml

File renamed without changes.

EKS/Migrate-Backup-EKS-Applications/trident-vault.yaml renamed to EKS/Backup-EKS-Applications-with-Trident-Protect/trident-vault.yaml

File renamed without changes.

EKS/Migrate-Backup-EKS-Applications/trident-volume-storage-class.yaml renamed to EKS/Backup-EKS-Applications-with-Trident-Protect/trident-volume-storage-class.yaml

File renamed without changes.

EKS/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ This subfolder contains samples that can help you create solutions using AWS EKS
33

44
| Tool | Description |
55
| --- | --- |
6+
| [Backup EKS Applications with Trident Protect](/EKS/Backup-EKS-Applications-with-Trident-Protect) | This sample shows how to backup and restore PVCs in an EKS cluster using Trident Protect. |
67
| [FSxN as PVC for EKS](/EKS/FSxN-as-PVC-for-EKS) | This sample shows how to create a sandbox environment that demonstrates how to use FSx for NetApp ONTAP as a persistent storage for an EKS cluster. |
8+
| [PV Migrate with Trident Protect](/EKS/PV-Migrate-with-Trident-Protect) | This sample shows how to backup and restore PVCs in an EKS cluster using Trident Protect. |
79

810
## Author Information
911

0 commit comments

Comments
 (0)