Compare commits
2 Commits
ee50261216
...
bd229d52a1
| Author | SHA1 | Date | |
|---|---|---|---|
| bd229d52a1 | |||
| 271fec8da5 |
@@ -26,6 +26,11 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: shorefront-secret
|
name: shorefront-secret
|
||||||
key: POSTGRES_PASSWORD
|
key: POSTGRES_PASSWORD
|
||||||
|
- name: JWT_SECRET_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: shorefront-secret
|
||||||
|
key: JWT_SECRET_KEY
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
value: "postgresql://{{ .Values.postgres.user }}:$(POSTGRES_PASSWORD)@postgres:5432/{{ .Values.postgres.database }}"
|
value: "postgresql://{{ .Values.postgres.user }}:$(POSTGRES_PASSWORD)@postgres:5432/{{ .Values.postgres.database }}"
|
||||||
containers:
|
containers:
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: postgres
|
app: postgres
|
||||||
spec:
|
spec:
|
||||||
|
securityContext:
|
||||||
|
runAsUser: {{ .Values.postgres.runAsUser }}
|
||||||
|
runAsGroup: {{ .Values.postgres.runAsGroup }}
|
||||||
|
fsGroup: {{ .Values.postgres.runAsGroup }}
|
||||||
containers:
|
containers:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
image: "{{ .Values.postgres.image }}:{{ .Values.postgres.tag }}"
|
image: "{{ .Values.postgres.image }}:{{ .Values.postgres.tag }}"
|
||||||
@@ -35,6 +39,8 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: shorefront-secret
|
name: shorefront-secret
|
||||||
key: POSTGRES_PASSWORD
|
key: POSTGRES_PASSWORD
|
||||||
|
- name: PGDATA
|
||||||
|
value: /var/lib/postgresql/data/pgdata
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
@@ -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