kubernetes
kubernetes copied to clipboard
[emerg] 1#1: mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)
when i am trying to deploy the service-ui service in kuebnetes i am getting the below error
/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: /etc/nginx/conf.d/default.conf is not a file or does not exist /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh /docker-entrypoint.sh: Configuration complete; ready for start up 2023/06/12 10:16:53 [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)
All other services are up and running . the security context i have tried are 1000,2000,70, 65532. I tried both root and non-root images, but it is service-ui is not running. please suggest
I had the same issue I deployed by modifying kubernetes/reportportal/templates/ui-deployment.yaml
I added volume mounts under the container:
volumeMounts:
- name: var-volume
mountPath: /var/log/nginx
readOnly: false
- name: var-volume
mountPath: /var/cache/nginx
readOnly: false
- name: var-volume
mountPath: /var/run
readOnly: false
- name: var-volume
mountPath: /etc/nginx/conf.d/
readOnly: false
and a volume declaration for var-volume.
volumes:
- name: var-volume
emptyDir: {}
After doing so the problem of permissions was solved. Since the kube cluster we have also doesn't allow cluster admin permission.
Thank you Raviteja Lokineni. After adding the volume It is working