When I tried to restore an existing backup of keys into vault pods, all pods got sealed and I could not unseal even with unseal Key.
Steps: Backup File k8s-backup
#copying the backup folder into consul sever.
Step 1: kubectl cp /tmp/k8s-backup consul-consul-server-0:/tmp
#restoring
Step 2: onsul snapshot restore /tmp/k8s-backup
Result in all Vault Pods got sealed and failed to unseal even with unsealing key.
could it be because of consul key has to be passed during the vault initialization?
Thanks for posting this question. i see that you posted this on GitHub Issues as well. I’ll try focusing the conversation here to answer your questions
Does this happen consistently? Can you post the steps to replicate it?
How are you doing your backup initially?
After doing that, I see the vault pods, got sealed. vault-0 0/1 running
Now I tried to unseal them with my unseal key but it’s not getting unsealed sadly.
Thanks in advance.
Also, a question which I think could be a issue, in standalone servers, while initializing the vault server we pass a consul-key which we get while setting up consul server, but this step was not done in k8s, as I followed your official documentation.