-
Notifications
You must be signed in to change notification settings - Fork 2k
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
allow init containers, e.g. to deploy a crl file to nginx #2100
Conversation
Hi @g10f Thanks for the PR! Could you possibly clarify the use case(s) for init containers in the Ingress Controller? You mentioned crl files. However, could you explain how it works? |
I added some information above. The main thing is, that we copy the crl file with the init container to a shared mount. |
Hi Gunnar, Many thanks for the PR, we are eager to merge it. Some further feedback:
|
Hi @tomasohaodha, thank you for the feedback. I updated the pull request. |
Thanks for that Gunnar, we'll review asap |
Verified:
@g10f approved 👍🏼 , just a few minor comments:
|
- consistent doc info - example for initContainers
- consistent doc info - example for initContainers
Thanks for reviewing. I have implemented your suggestions. |
Merged into master, many thanks @g10f Gunnar. |
Proposed changes
For deploying crl files with size of several MBs to nginx we need an InitContainer.
Our crl file is about 8 MB which can not be stored in a config map because of the size. Therfore we use an init container to provide the crl.
E. g. here a values file snippet with an init container that copys a crl file to data/pem/crl.pem
The corresponding ingress yaml snippet is
Additionally we use a cronjob which does a kubectl rollout restart of the deployment so that new crl files are used by nginx. Would be nice, if this is supported by the helm chart.