fix: run postgres as uid 99/gid 100 to match Unraid NFS squash mapping
All checks were successful
Build containers when image tags change / build-if-image-changed (backend, shorefront-backend, shorefront backend, backend/Dockerfile, git.baumann.gr/adebaumann/shorefront-backend, .backend.image) (push) Successful in 12s
Build containers when image tags change / build-if-image-changed (frontend, shorefront-frontend, shorefront frontend, frontend/Dockerfile, git.baumann.gr/adebaumann/shorefront-frontend, .frontend.image) (push) Successful in 1m9s
All checks were successful
Build containers when image tags change / build-if-image-changed (backend, shorefront-backend, shorefront backend, backend/Dockerfile, git.baumann.gr/adebaumann/shorefront-backend, .backend.image) (push) Successful in 12s
Build containers when image tags change / build-if-image-changed (frontend, shorefront-frontend, shorefront frontend, frontend/Dockerfile, git.baumann.gr/adebaumann/shorefront-frontend, .frontend.image) (push) Successful in 1m9s
This commit is contained in:
@@ -17,9 +17,9 @@ spec:
|
|||||||
app: postgres
|
app: postgres
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 70
|
runAsUser: {{ .Values.postgres.runAsUser }}
|
||||||
runAsGroup: 70
|
runAsGroup: {{ .Values.postgres.runAsGroup }}
|
||||||
fsGroup: 70
|
fsGroup: {{ .Values.postgres.runAsGroup }}
|
||||||
containers:
|
containers:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
image: "{{ .Values.postgres.image }}:{{ .Values.postgres.tag }}"
|
image: "{{ .Values.postgres.image }}:{{ .Values.postgres.tag }}"
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ postgres:
|
|||||||
tag: "15-alpine"
|
tag: "15-alpine"
|
||||||
database: shorefront
|
database: shorefront
|
||||||
user: shorefront
|
user: shorefront
|
||||||
|
# NFS squashes all writes to this uid/gid (Unraid default: nobody=99, gid=100)
|
||||||
|
runAsUser: 99
|
||||||
|
runAsGroup: 100
|
||||||
resources:
|
resources:
|
||||||
requests: { cpu: 100m, memory: 128Mi }
|
requests: { cpu: 100m, memory: 128Mi }
|
||||||
limits: { cpu: 500m, memory: 512Mi }
|
limits: { cpu: 500m, memory: 512Mi }
|
||||||
|
|||||||
Reference in New Issue
Block a user