diff options
author | Aaditya Dhruv <[email protected]> | 2025-04-22 17:29:46 -0500 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2025-05-01 20:19:51 -0500 |
commit | 55298a51cb0cc5e68c5a43869f2f32b899d3a622 (patch) | |
tree | 50d271288502bcff6f0a5133ce0839d883ee8ef7 /roles/photos/files/postgres/templates/database.yaml |
init
Diffstat (limited to 'roles/photos/files/postgres/templates/database.yaml')
-rw-r--r-- | roles/photos/files/postgres/templates/database.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/roles/photos/files/postgres/templates/database.yaml b/roles/photos/files/postgres/templates/database.yaml new file mode 100644 index 0000000..098a410 --- /dev/null +++ b/roles/photos/files/postgres/templates/database.yaml @@ -0,0 +1,37 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: "immich-postgres-deployment" + labels: + app: "immich-db" +spec: + replicas: 1 + selector: + matchLabels: + app: "immich-db" + template: + metadata: + labels: + app: "immich-db" + spec: + containers: + - name: immich-db + image: "{{ .Values.image }}:{{ .Values.version }}" + env: + - name: POSTGRES_USER + value: {{ .Values.user }} + - name: POSTGRES_DB + value: immich + - name: POSTGRES_PASSWORD + value: {{ .Values.password }} + - name: PGDATA + value: /var/lib/postgresql/data/_data + ports: + - containerPort: 5432 + volumeMounts: + - mountPath: "/var/lib/postgresql/data" + name: "immich-database-volume" + volumes: + - name: "immich-database-volume" + persistentVolumeClaim: + claimName: "immich-db-pvc" |