-
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
helm: initContainer in defaultBackend #12334
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
what are the differences between what is current and what you propose. |
The image is the registry.k8s.io/ingress-nginx/nginx-errors. With an initContainer I could avoid to create and maintain my own images and just keep the official one, then changing only the static pages depending on the project. It would also be helpful for downloading data in a volume if it does not fit on a configMap. |
Is the configMap yours. |
Yes, the configmap is mine and it has the index.html etc to be mounted in the backend. The problem is that This index.html should be customized with different error messages depending on the HTTP status (aka different html files in the container). I would like to do that with a simple shell file in the initContainer. At the same time it would help in downloading images that are too large for a ConfigMap. As stated in the ingress-nginx example the errors are recognized depending on the name of the html file. In other words, starting from a single template (index.html in the ConfigMap) the shell creates multiple HTML files with the error code (e.g., If there is another way to do the same with the existing chart, I will be happy to use that solution. I would only avoid to recreate multiple container images for different projects. Just change ConfigMap. |
That is a good-to-have feature. Please wait for other comments. Please join the community meeting and discuss this https://github.com/kubernetes/community/tree/master/sig-network. All focus is on security & Gateway-API now. So unless there is a bugfix, that impacts all users, I am not sure if there can be much traction. |
I do like the idea of this, and would use it if it existed. |
In the Helm chart, I would like to add an initContainer to the defaultBackend to customize some files mounted from a ConfigMap.
Example:
The text was updated successfully, but these errors were encountered: