coreos / etcd-operator

etcd operator creates/configures/manages etcd clusters atop Kubernetes
https://coreos.com/blog/introducing-the-etcd-operator.html
Apache License 2.0
1.75k stars 741 forks source link

Restore etcd backup to a different namespace #2055

Open jungopro opened 5 years ago

jungopro commented 5 years ago

Hello

I'm trying to perform a restore to an etcd cluster in a different namespace than the operator and fails. I read through the docs and couldn't find the exact spec to make it work.

Scenario

Backup worked great using the following method:

The restore process, not so great:

I tried the following modifications to the restore yaml:

Nothing worked. Any suggestions?

Thanks Omer

alaypatel07 commented 5 years ago

@jungopro The restore-operator only works if the restore-operator and the etcd cluster you are trying to restore are in the same namespace.

In the operator logs you provided, the restore operator is run in default namespace and the etcdcluster is in mp-temp namespace, hence it is failing.

Can I ask what exactly are you trying to achieve in having the restore to work across namespaces?

jungopro commented 5 years ago

hi @alaypatel07 thanks for the reply. I thought the restore can work across namespaces, same as the backup. I basically wanted to deploy the operator once, in a single namespace, and have it manage multiple clusters in different namespaces Since this feature is already possible for creating and backing-up clusters, I thought it only makes sense it will be possible for restoring cluster data as well