Skip to content

Support specifying sessionAffinity and sessionAffinityConfig for ClusterIP services created for Collectors by Operator #4455

@mou

Description

@mou

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions