Skip to content
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 specifying enableServiceLinks configuration in PodTemplate #4800

Closed
artifactron opened this issue Apr 22, 2021 · 1 comment · Fixed by #4810
Closed

Allow specifying enableServiceLinks configuration in PodTemplate #4800

artifactron opened this issue Apr 22, 2021 · 1 comment · Fixed by #4810

Comments

@artifactron
Copy link

artifactron commented Apr 22, 2021

Is your feature request related to a problem? Please describe.
We're running a Kubernetes cluster with 1k+ Service objects, resulting in 5k+ environment variables being injected to pods if enableServiceLinks configuration is set to true, which is also its default value.

Zookeeper and Kafka pods seem can't handle that tremendous amount of environment variables as they keep crashing with no meaningful explanation in the log. Changing enableServiceLinks to false in the Kafka StatefulSet object (by temporarily pausing the operator) fixes the issue, but sure, if the operator is resumed, the configuration will be reverted and Kafka will start to crash.

Describe the solution you'd like
Allow configuring enableServiceLinks in PodTemplate so we can set it to false, resulting in fewer environment variables being injected to the Strimzi-managed pods, which results in working Kafka clusters on the specified cluster.

Describe alternatives you've considered
Allow more flexible schema of PodTemplate so more aspects of Strimzi-managed pods can be configured. An example of an operator that leverages this flexible schema is elastic-operator.

Additional context
N/A

Notifying @raeoks.

@scholzj
Copy link
Member

scholzj commented Apr 22, 2021

I do not think we plan to support something like the Elastic operator has. But I will have a look at the enableServiceLinks.

scholzj added a commit to scholzj/strimzi-kafka-operator that referenced this issue Apr 24, 2021
Signed-off-by: Jakub Scholz <www@scholzj.com>
scholzj added a commit that referenced this issue Apr 30, 2021
* Make it possible to disable service links - Close #4800

Signed-off-by: Jakub Scholz <www@scholzj.com>

* Review comments

Signed-off-by: Jakub Scholz <www@scholzj.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants