concourse / hush-house

Concourse k8s-based environment
https://hush-house.pivotal.io
30 stars 23 forks source link

switch `vault` in nci to `vault-nci` #105

Closed pivotal-bin-ju closed 4 years ago

pivotal-bin-ju commented 4 years ago

We've achieved a fantastic milestone - moved our ci from bosh to helm. And vault is enabled to the nci 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 instance vault-nci, which has cloudsql/postgres as the backend, and the auto-backup is enabled.

Here is the plan for the switch:

pivotal-bin-ju commented 4 years ago

WDYT @cirocosta ?

cirocosta commented 4 years ago

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:

pivotal-bin-ju commented 4 years ago

@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.