Skip to content

Commit 0282892

Browse files
committed
feat: persist vault on reboot
1 parent 0018c8c commit 0282892

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

playbook/project/roles/micado_master/start/templates/micado/micado-manifest.yml.j2

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,8 @@ spec:
997997
hostPath:
998998
path: /var/lib/micado/vault/config
999999
- name: vault-storage
1000-
emptyDir: {}
1000+
hostPath:
1001+
path: /var/lib/micado/vault/data
10011002
- name: vault-log
10021003
hostPath:
10031004
path: /var/log/micado/vault
@@ -1048,7 +1049,7 @@ spec:
10481049
initContainers:
10491050
- name: init-wait-vault
10501051
image: busybox:1.30
1051-
command: ['sh', '-c', 'until wget --spider vault:8200/v1/sys/health?uninitcode=200; do echo waiting for vault; sleep 2; done;']
1052+
command: ['sh', '-c', 'until wget --spider -q vault:8200/v1/sys/health?sealedcode=200&standbycode=200&uninitcode=200; do echo waiting for vault; sleep 2; done;']
10521053
containers:
10531054
- name: security-policy-manager
10541055
image: {{docker_images.securitypolicymanager}}
@@ -1109,7 +1110,7 @@ spec:
11091110
initContainers:
11101111
- name: init-wait-vault
11111112
image: busybox:1.30
1112-
command: ['sh', '-c', 'until wget --spider vault:8200/v1/sys/health; do echo waiting for vault; sleep 2; done;']
1113+
command: ['sh', '-c', 'until wget --spider -q vault:8200/v1/sys/health?sealedcode=200&standbycode=200&uninitcode=200; do echo waiting for vault; sleep 2; done;']
11131114
containers:
11141115
- name: zorp
11151116
image: {{docker_images.zorp}}

0 commit comments

Comments
 (0)