I have a development cluster, in which I have two namespaces ns-a and ns-b. However, I'd like to create a backup of only nsb and make a copy of it in the whole new cluster.
How can I achieve it. Also, if any tutorials or documents on the same. Please share
In GKE there is a feature called Backup for GKE, it is a service for backing up and restoring workloads in GKE clusters.
This will help for your scenario which is to create a backup plan only for one namespace and restore it in a new cluster. Follow below steps which I have replicated in my environment:
Then create a backup plan. Then it will create a backup plan and wait for the first backup.
Choose the backup plan which we have done in the previous step and choose the new cluster which we have created for restoring, click on create or you can explore more options in it.
This will restore all the components within the namespace of the existing cluster to the new cluster.