Pod creation fails with crashloopbackoff due to below issue:
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) 2020/11/24 19:04:12 [emerg] 1#0: open() "/var/log/nginx/access.log" failed (13: Permission denied)
Can anyone help? Would appreiate.
Can you provide a bit more information? What course, chapter, and section are you seeing this issue?
You said "Pod", so I'd assume you are deploying into an OpenShift cluster.
The "permission denied" message makes me think that either a) the container is not mounting a volume, or it is mounted without the adequate permissions, or b) the container is running as a user with no write access to the log file.
Hope that helps.
A collaborative learning environment, enabling open source skill development.