<p>How do I restore kubernetes cluster using kops?
I've kubernetes state files in my s3 bucket.</p>

<p>Is there a way to restore kubernetes cluster using kops?</p>

<p>As you mention, kops stores the state of the cluster in an S3 bucket. If you run <code>kops create cluster</code> with the same state file, it will recreate the cluster as it was before, with the same instancegroups and master configuration. This assumes the cluster has been deleted, if not, you'll need to use the <code>kops update cluster</code> command which should bring the state back to your desired once if the state of the cluster has diverged.</p>

<p>However, this doesn't cover the resources and deployments inside the cluster, and to achieve a full recovery, you may want to recover those deployments. In order to achieve this, you'll need to backup the etcd datastore used by Kubernetes. <a href="https://github.com/kubernetes/kops/blob/master/docs/operations/etcd_backup_restore_encryption.md" rel="nofollow noreferrer">This document</a> covers this in more detail.</p>

<p>You may also want to consider using something like <a href="https://github.com/vmware-tanzu/velero" rel="nofollow noreferrer">Velero</a> for backing up the etcd state</p>
