From 9cf1f2ca37ce8eca3d1f9d33f675b40255fc7292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=83=E5=81=A5=E6=AF=85?= <2756283+huang-jy@users.noreply.github.com> Date: Wed, 22 Jan 2025 07:28:58 +0000 Subject: [PATCH] fix(NONE): Set volumepermissions for psql --- charts/pixelfed/values.yaml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/charts/pixelfed/values.yaml b/charts/pixelfed/values.yaml index 546c406..60b1785 100644 --- a/charts/pixelfed/values.yaml +++ b/charts/pixelfed/values.yaml @@ -55,13 +55,15 @@ podAnnotations: {} podLabels: {} # -- securityContext for the whole pod -podSecurityContext: {} +podSecurityContext: + {} # runAsUser: 33 # runAsGroup: 33 # fsGroup: 33 # -- securityContext for the pixelfed container -securityContext: {} +securityContext: + {} # runAsUser: 33 # runAsNonRoot: true # readOnlyRootFilesystem: true @@ -98,7 +100,8 @@ ingress: # - chart-example.local # -- set resource limits and requests for cpu, memory, and ephemeral storage -resources: {} +resources: + {} # limits: # cpu: 100m # memory: 128Mi @@ -108,14 +111,16 @@ resources: {} # -- 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/ -livenessProbe: {} +livenessProbe: + {} # httpGet: # path: /api/service/health-check # port: http # -- 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/ -readinessProbe: {} +readinessProbe: + {} # httpGet: # path: /api/service/health-check # port: http @@ -261,7 +266,6 @@ valkey: # default: nano resourcesPreset: "small" - postgresql: # -- 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 @@ -270,10 +274,15 @@ postgresql: global: storageClass: "" + ## If you get "mkdir: cannot create directory ‘/bitnami/postgresql/data’: Permission denied" + ## error, set these + volumePermissions: + enabled: true # -- PHP Configuration files # Will be injected in /usr/local/etc/php-fpm.d -phpConfigs: {} +phpConfigs: + {} # www.conf: |- # [www] # user = www-data