percona / percona-server-mongodb-operator

Percona Operator for MongoDB
https://www.percona.com/doc/kubernetes-operator-for-psmongodb/
Apache License 2.0
321 stars 138 forks source link

Allow adding more initContainers and their securityContext #1577

Open jadolg opened 3 months ago

jadolg commented 3 months ago

Proposal

Currently, only the mongo-init initContainer is run. In order to tune mongodb a bit further I think It'd be good to have a way to configure extra initContainers and their securityContext.

Use-Case

I would like to be able to modify the tcp_keepalive of my service. In order to do so, I need to spawn a privileged initContainer changing this configuration. See https://www.mongodb.com/docs/kubernetes-operator/v1.25/tutorial/modify-resource-image/#tune-mongodb-kubernetes-resource-docker-images-with-an-initcontainer

Is this a feature you are interested in implementing yourself?

Maybe

Anything else?

No response