chore(vault): Create vault bucket
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
38b90a2a3a
commit
6c51fea6bf
3 changed files with 5 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ set -e
|
|||
|
||||
cd /tmp
|
||||
|
||||
buckets=("mobs" "sessions-assets" "static" "sourcemaps" "sessions-mobile-assets" "quickwit")
|
||||
buckets=("mobs" "sessions-assets" "static" "sourcemaps" "sessions-mobile-assets" "quickwit" "vault-data")
|
||||
|
||||
mc alias set minio http://minio.db.svc.cluster.local:9000 $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
|
||||
|
||||
|
|
|
|||
|
|
@ -166,6 +166,8 @@ spec:
|
|||
value: "{{ .Values.global.s3.region }}"
|
||||
- name: AWS_ENDPOINT
|
||||
value: "{{ .Values.global.s3.endpoint }}"
|
||||
- name: VAULT_BUCKET
|
||||
value: "{{ .Values.global.s3.vaultBucket }}"
|
||||
image: amazon/aws-cli
|
||||
command:
|
||||
- /bin/bash
|
||||
|
|
@ -174,7 +176,7 @@ spec:
|
|||
- |
|
||||
while true; do
|
||||
[[ -f /opt/openreplay/vault_creds.txt ]] && {
|
||||
aws s3 cp --endpoint ${AWS_ENDPOINT} /opt/openreplay/vault_creds.txt s3://static/vault/
|
||||
aws s3 cp --endpoint ${AWS_ENDPOINT} /opt/openreplay/vault_creds.txt s3://${VAULT_BUCKET}/vault/
|
||||
exit 0
|
||||
} || {
|
||||
echo vault not yet initialized;
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ global:
|
|||
assetsBucket: "sessions-assets"
|
||||
recordingsBucket: "mobs"
|
||||
sourcemapsBucket: "sourcemaps"
|
||||
vaultBucket: "vault-data"
|
||||
# This is only for enterpriseEdition
|
||||
quickwitBucket: "quickwit"
|
||||
# if you're using one node installation, where
|
||||
|
|
@ -189,4 +190,3 @@ vault:
|
|||
{{- with secret "database/creds/db-app" -}}
|
||||
POSTGRES_STRING=postgres://{{.Data.username}}:{{.Data.password}}@postgresql.db.svc.cluster.local:5432/postgres
|
||||
{{- end -}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue