AWX Operator and instance pods running as non root in OpenShift cluster with NFS PV/PVC

Hi,

We’re using OpenShift Kubernetes platform and here is my AWX instance YAML. I have applied AWX Operator CRDs into the same namespace as the instance namespace, to keep all the configuration at ns scope.

Using to use existing NFS share folders to store AWX projects and Postgres DB data, so created respective PV, PVCs and configured path accordingly.
The instance install went well but seeing following error in the DB pod logs, trying to understand what needs to be done without changing permissions to 777 to the DB directory.

" chmod: changing permissions of ‘/var/run/postgresql’: Operation not permitted"

Also note that OpenShift wouldn’t allow pods/containers to run as root, so no changes have been made to enable privilege escalation or SCC for any pods/deployments.

Changed postgres_storage_class to use a default storage class ‘thin’ to user dynamic storage provisioning and I see a that PV and PVC are created with this. I no longer see chmod error I posted above. Moving onto other tasks for now, but will research further later why Postgrs DB is unable to use NFS backed storage.

Thanks