-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run ingress-nginx on readonly fs #4179
Comments
Which performance reasons?
I don't have a fix for this one. Any idea/proposal is welcome
For this one, you need to copy the content from the image. I am fixing some issues with PSP and volumes here #4456 |
@aledbf thank you for answer and fix for volumes 👍
https://docs.docker.com/storage/storagedriver/select-storage-driver/
|
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.):
What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.):
Feature request
NGINX Ingress controller version: 0.24.1
Kubernetes version (use
kubectl version
): v1.13.4Environment:
uname -a
): 3.10What happened:
I'm need to set
readOnlyRootFilesystem: true
in PSP for ingress nginx controller for security and performance reasons.When I start it with this mount points(all volumes is
emptyDir
):I have 2 errors:
main.go:141] Error creating prometheus collector: listen unix /tmp/prometheus-nginx.socket: bind: address already in use
nginx.go:170] Invalid NGINX configuration template: unexpected error reading template /etc/nginx/template/nginx.tmpl: open /etc/nginx/template/nginx.tmpl: no such file or directory
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
PodSecurityPolicy
DaemonSet:
Anything else we need to know:
There are workarounds for both problems:
We can remove
/tmp/prometheus-nginx.socket
on container startWe can copy configuration files to
/etc/nginx
withinitContainer
The text was updated successfully, but these errors were encountered: