DEV Community

Discussion on: How to "Reset" a HashiCorp Vault back to Zero State using Consul

Collapse
 
dmitrykankalovich profile image
Dmitry Kankalovich • Edited

If you go with the default Helm installation of Vault then you should be aware that it seems like Vault caches its init state, even though you've deleted it in Consul.

What helped me:

  • Delete init state in Consul: ssh to Consul server pod and run consul kv delete -recurse vault/
  • Delete Vault pods: kubectl delete pods -l app.kubernetes.io/instance=vault -n your_namespace
  • Observe Vault pods are re-created
  • Initialize Vault
  • Unseal Vault