fix(NONE): Set volumepermissions for psql

This commit is contained in:
黃健毅
2025-01-22 07:28:58 +00:00
parent 64566d6ebe
commit 9cf1f2ca37
+16 -7
View File
@@ -55,13 +55,15 @@ podAnnotations: {}
podLabels: {} podLabels: {}
# -- securityContext for the whole pod # -- securityContext for the whole pod
podSecurityContext: {} podSecurityContext:
{}
# runAsUser: 33 # runAsUser: 33
# runAsGroup: 33 # runAsGroup: 33
# fsGroup: 33 # fsGroup: 33
# -- securityContext for the pixelfed container # -- securityContext for the pixelfed container
securityContext: {} securityContext:
{}
# runAsUser: 33 # runAsUser: 33
# runAsNonRoot: true # runAsNonRoot: true
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
@@ -98,7 +100,8 @@ ingress:
# - chart-example.local # - chart-example.local
# -- set resource limits and requests for cpu, memory, and ephemeral storage # -- set resource limits and requests for cpu, memory, and ephemeral storage
resources: {} resources:
{}
# limits: # limits:
# cpu: 100m # cpu: 100m
# memory: 128Mi # memory: 128Mi
@@ -108,14 +111,16 @@ resources: {}
# -- This is to setup the liveness probe # -- This is to setup the liveness probe
# more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ # more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
livenessProbe: {} livenessProbe:
{}
# httpGet: # httpGet:
# path: /api/service/health-check # path: /api/service/health-check
# port: http # port: http
# -- This is to setup the readiness probe # -- This is to setup the readiness probe
# more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ # more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
readinessProbe: {} readinessProbe:
{}
# httpGet: # httpGet:
# path: /api/service/health-check # path: /api/service/health-check
# port: http # port: http
@@ -261,7 +266,6 @@ valkey:
# default: nano # default: nano
resourcesPreset: "small" resourcesPreset: "small"
postgresql: postgresql:
# -- enable the bundled [postgresql sub chart from Bitnami](https://github.com/bitnami/charts/blob/main/bitnami/postgresql/README.md#parameters). # -- enable the bundled [postgresql sub chart from Bitnami](https://github.com/bitnami/charts/blob/main/bitnami/postgresql/README.md#parameters).
# Must set to true if externalDatabase.enabled=false # Must set to true if externalDatabase.enabled=false
@@ -270,10 +274,15 @@ postgresql:
global: global:
storageClass: "" storageClass: ""
## If you get "mkdir: cannot create directory /bitnami/postgresql/data: Permission denied"
## error, set these
volumePermissions:
enabled: true
# -- PHP Configuration files # -- PHP Configuration files
# Will be injected in /usr/local/etc/php-fpm.d # Will be injected in /usr/local/etc/php-fpm.d
phpConfigs: {} phpConfigs:
{}
# www.conf: |- # www.conf: |-
# [www] # [www]
# user = www-data # user = www-data