I have questions about how to back up and restore my Amazon Elastic Kubernetes Service (Amazon EKS) clusters.
Resolution
Q: How can I back up and restore an Amazon EKS cluster with AWS Backup?
Use AWS Backup to create a composite recovery point for an Amazon EKS cluster. You can create on-demand backups or schedule backups with backup plans. You can restore to an existing cluster or create a new cluster from the recovery point.
Q: Does AWS Backup support cross-Region backups for Amazon EKS resources?
Yes. AWS Backup can copy recovery points to other AWS Regions on demand or automatically as part of a backup plan. This allows you to keep Amazon EKS backup copies in other Regions for disaster recovery and compliance.
For more information, see Creating backup copies across AWS Regions.
Q: Can I restore Amazon EKS backups across AWS accounts with AWS Backup?
Yes. You can copy backups to other AWS accounts and restore from them. Cross-account copies and restores work across accounts in an AWS organization.
Composite recovery points (backups) support copy operations. Persistent volume child recovery points support copy, delete, disassociate, and restore operations. The Amazon EKS cluster state child recovery point doesn't support copy, delete, or disassociate operations. It maintains a 1:1 relationship with its parent composite recovery point.
Q: What is the scope of an Amazon EKS backup created with AWS Backup?
An Amazon EKS backup is a composite recovery point. It includes both Kubernetes cluster state and the persistent storage attached to the cluster. AWS Backup captures cluster-scoped and namespace-scoped Kubernetes objects as part of that composite recovery point.
The cluster state includes manifests and objects. The persistent storage includes child recovery points for Amazon Elastic Block Store (Amazon EBS), Amazon Elastic File System (Amazon EFS), and Amazon Simple Storage Service (Amazon S3).
Q: Can I back up only specific namespaces or workloads in an Amazon EKS cluster with AWS Backup?
AWS Backup supports both full cluster backups and namespace-level restores. You create a full cluster composite recovery point. You can also perform namespace-level restores and select up to 5 namespaces to restore.
Backups are composite and capture cluster state and storage. The restore operation allows you to choose full or namespace-level restores.
Q: Can AWS Backup back up persistent volume data for Amazon EKS workloads?
Yes. AWS Backup includes persistent volume data backed by Amazon EBS, Amazon EFS, and Amazon S3 as child recovery points in the Amazon EKS composite backup.
Q: What restore options are available when I restore Amazon EKS backups with AWS Backup?
AWS Backup supports multiple restore options:
- Restore to the source Amazon EKS cluster or an existing Amazon EKS cluster
- Create a new Amazon EKS cluster as part of your Amazon EKS restore
- Restore up to 5 namespaces
- Restore individual persistent storage volumes
For more information, see Restore an Amazon EKS cluster.
Related information
Secure EKS clusters with the new support for Amazon EKS in AWS Backup
Backup your EKS clusters with AWS Backup
Getting started with AWS Backup