I have seen so many issues with Helm and default namespace here on SO that it is embarrassing to post yet another one. I believe I reviewed the ones I saw and did not find a solution to my problem.
Helm version is 3.9.3 Kubernetes: OpenShift 4.9
I create an nginx chart by simply doing:
helm create disco
When I deploy this application in default project/namespace, it works fine. However, when I deploy it in non-default workspace, it fails.
My command for deploying in non-default workspace:
oc new-project helm-sandbox
helm install disco . --namespace helm-sandbox
The CLI appears to indicate that the deployment succeeded. But the pod keeps having CrashLoopBackoff.
The pod logs show following error message:
nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
2022/09/08 02:00:19 [emerg] 1#1: mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)
nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)
Any idea why this is failing on me?