-
Notifications
You must be signed in to change notification settings - Fork 568
Description
Component(s)
collector
Is your feature request related to a problem? Please describe.
In some cases, we would like to create a Collector service with sessionAffinity set to ClientIP. But there is no way to specify that parameter in the OpenTelemetry Collector resource. Because the service is managed by the operator and may not be created immediately after the Collector resource is created, there is no way to patch the service during deployment (using Kustomize or similar tools). Also, service might be reconciled by the Operator, and reconciliation might drop the modified attribute.
Describe the solution you'd like
Add the ability to specify sessionAffinity and sessionAffinityConfig in the OpentelemetryCollector resource and support these parameters during the provision of the resource by the operator.
Describe alternatives you've considered
A workaround would be to have a mutating admission webhook to add such parameters to the resource.
An alternative solution is to allow disabling service creation to let the user to provide service, but this will be very error-prone, because slight changes to the Collector definition might cause configuration drift between resources.
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.