Fix DB pod
This commit is contained in:
parent
b22b692d61
commit
238920ddf3
@ -29,9 +29,14 @@ spec:
|
|||||||
- |
|
- |
|
||||||
chown -R 999:999 /var/lib/postgresql/data
|
chown -R 999:999 /var/lib/postgresql/data
|
||||||
chmod 700 /var/lib/postgresql/data
|
chmod 700 /var/lib/postgresql/data
|
||||||
|
mkdir -p /var/run/postgresql
|
||||||
|
chown -R 999:999 /var/run/postgresql
|
||||||
|
chmod 775 /var/run/postgresql
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: postgres-data
|
- name: postgres-data
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql/data
|
||||||
|
- name: postgres-run
|
||||||
|
mountPath: /var/run/postgresql
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
containers:
|
containers:
|
||||||
@ -66,6 +71,8 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: postgres-data
|
- name: postgres-data
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql/data
|
||||||
|
- name: postgres-run
|
||||||
|
mountPath: /var/run/postgresql
|
||||||
- name: init-script
|
- name: init-script
|
||||||
mountPath: /docker-entrypoint-initdb.d
|
mountPath: /docker-entrypoint-initdb.d
|
||||||
resources:
|
resources:
|
||||||
@ -90,6 +97,8 @@ spec:
|
|||||||
- name: init-script
|
- name: init-script
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "invy.fullname" . }}-db-schema
|
name: {{ include "invy.fullname" . }}-db-schema
|
||||||
|
- name: postgres-run
|
||||||
|
emptyDir: {}
|
||||||
{{- if .Values.postgres.persistence.enabled }}
|
{{- if .Values.postgres.persistence.enabled }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user