♻️ migrate postgresql to truenas jail + minio https

This commit is contained in:
auricom
2024-01-13 17:47:18 +01:00
parent badd042d50
commit 7fd3c78db8
111 changed files with 785 additions and 266 deletions

View File

@@ -15,16 +15,16 @@ spec:
engineVersion: v2
data:
# App
DATABASE_URL: postgresql://{{ .POSTGRES_USER }}:{{ .POSTGRES_PASS }}@postgres-rw.default.svc.cluster.local.:5432/vaultwarden
DATABASE_URL: postgresql://{{ .POSTGRES_USER }}:{{ .POSTGRES_PASS }}@postgres.${SECRET_DOMAIN}.:5432/vaultwarden
ADMIN_TOKEN: "{{ .VAULTWARDEN_ADMIN_TOKEN }}"
# Postgres Init
INIT_POSTGRES_DBNAME: vaultwarden
INIT_POSTGRES_HOST: postgres-rw.default.svc.cluster.local
INIT_POSTGRES_HOST: postgres.${SECRET_DOMAIN}
INIT_POSTGRES_USER: "{{ .POSTGRES_USER }}"
INIT_POSTGRES_PASS: "{{ .POSTGRES_PASS }}"
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
dataFrom:
- extract:
key: cloudnative-pg
key: generic
- extract:
key: vaultwarden

View File

@@ -35,9 +35,8 @@ spec:
initContainers:
init-db:
image:
repository: ghcr.io/auricom/postgres-init
tag: 15.5@sha256:9b1b80d8101d3f1c73ef13b90dff2ab3bc855bd79ebcd334cba57db391ce6db0
pullPolicy: IfNotPresent
repository: ghcr.io/onedr0p/postgres-init
tag: 16
envFrom: &envFrom
- secretRef:
name: vaultwarden-secret
@@ -68,14 +67,14 @@ spec:
memory: 100Mi
limits:
memory: 2Gi
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 10Gi
storageClass: rook-ceph-block
globalMounts:
- path: /data
# statefulset:
# volumeClaimTemplates:
# - name: config
# accessMode: ReadWriteOnce
# size: 10Gi
# storageClass: rook-ceph-block
# globalMounts:
# - path: /data
service:
main:
ports: