Hello,
I have appreciated the OpenShift references in the docs and was excited to get started with RasaX. I have been using OpenShift as a dev for around 5 years and more recently, have jumped into Kustomize quite heavily but this is my first experience with Helm. I have been looking forward to trying it, though.
I am using these instructions as my guide.
I filled in the basic values as instructed by the docs and tried the install and received the errors the docs mention regarding runAsUser
. I added the securityContext
value and the made it further. However, Postgresql and Nginx are both unable to start up.
The PG logs:
[38;5;6mpostgresql e[38;5;5m17:14:39.98 e[0me[38;5;2mINFO e[0m ==> Initializing PostgreSQL database...
chmod: changing permissions of '/bitnami/postgresql/data': Operation not permitted
e[38;5;6mpostgresql e[38;5;5m17:14:40.01 e[0me[38;5;3mWARN e[0m ==> Lack of permissions on data directory!
chmod: changing permissions of '/bitnami/postgresql/data': Operation not permitted
e[38;5;6mpostgresql e[38;5;5m17:14:40.01 e[0me[38;5;3mWARN e[0m ==> Lack of permissions on data directory!
The Nginx logs:
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
20-envsubst-on-templates.sh: ERROR: /etc/nginx/templates exists, but /etc/nginx/conf.d is not writable
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2021/11/15 17:14:56 [emerg] 1#1: mkdir() "/etc/nginx/client_body" failed (13: Permission denied)
nginx: [emerg] mkdir() "/etc/nginx/client_body" failed (13: Permission denied)
On the PG side, after doing a lot of reading, I’m using the following in values.yaml:
postgresql:
volumePermissions:
securityContext:
runAsUser: "auto"
securityContext:
enabled: false
containerSecurityContext:
enabled: false
shmVolume:
chmod:
enabled: false
Per the PG Helm chart notes for OpenShift. I can install the Helm PG chart no problem, by the way, using just:
securityContext:
enabled: false
containerSecurityContext:
enabled: false
Can anyone point me in the right direction?
Thanks!