Closed pivotal-bin-ju closed 4 years ago
WDYT @cirocosta ?
Hey @pivotal-bin-ju,
delete the pod vault/vault-0
Was the idea of the deletion to just restart the pod?
If not, I think this is not really what we want because by doing that removal, we'll only get rid of the current instantiation of the pod, having another coming back right after:
NAMESPACE NAME
vault StatefulSet/vault
vault ├─ControllerRevision/vault-bb9698cb7
vault └─Pod/vault-0
if the goal is to get the configuration change, the next steps (helm upgrade
wht a new config), then that should cover the deletion of the pod, etc along with
the transition to whatever new configuration we want :grin:
@cirocosta , while the pod exists, we run helm
command to redeploy the pod, it complains the instance is already exists.
Anyway, I will try make deploy
, if it doesn't work, then I will helm delete
the pod.
We've achieved a fantastic milestone - moved our
ci
from bosh to helm. Andvault
is enabled to thenci
environment as well.The vault has
auto-unseal
enabled, that is cool. But with the file system backend, we are lacking of backup. That is why we created a new instancevault-nci
, which hascloudsql/postgres
as the backend, and theauto-backup
is enabled.Here is the plan for the switch:
terraform plan
to see the grap. If the gap exists,terraform apply
.[x] Do the data sync check between the
vault
andvault-nci
. We could leverage the migration tool to sync the data. You could either offline mode (export first, then import) or the online mode. Here is the example for online mode.vault
if they are not reachable from your host.run the
verify
command. e.g.:if
dry-run=true
, the tool does not apply the change to the target vault, just show you the differences.lastpass
. For our case it ishush-house-values-vault
. To make the vault-nci worker, we havehush-house-values-vault-nci
. So what we should do now is:hush-house-values-vault
tohush-house-values-vault-obsolete
hush-house-values-vault-nci
tohush-house-values-vault
vault-nci/vault-nci-0
vault/vault-0
make creds-vault
make deploy-vault