Recover a Kubernetes Cluster Recover a Kubernetes Cluster kubernetes kubernetes

Recover a Kubernetes Cluster


kops stores its state in an S3 bucket identified by the KOPS_STATE_STORE. So yes, if your cluster has been removed you can restore it by running kops create cluster.

Keep in mind that it doesn't restore your etcd state so for that you are going to set up etcd backups. You could also make use of Heptio Ark.

Similar answers to this topic:

Recover kops Kubernetes cluster

How to restore kubernetes cluster using kops?


As mentioned by Rico in the earlier post, you can use Velero to back up your etcd using cli client. Another option to consider for the scenario you described is CAPE: CAPE provides an easy to use control plane for Kubernetes Multi-cluster App & Data Management via a friendly user interface.

See below for resources:

How to create an on-demand K8s Backup:https://www.youtube.com/watch?v=MOPtRTeG8sw&list=PLByzHLEsOQEB01EIybmgfcrBMO6WNFYZL&index=7

How to Restore/Migrate K8s Backup to Another Cluster:https://www.youtube.com/watch?v=dhBnUgfTsh4&list=PLByzHLEsOQEB01EIybmgfcrBMO6WNFYZL&index=10