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

Affinity in sumologic-sumologic-otelcol-events StatefulSet is Discarded #3830

Open
ugrkm opened this issue Aug 20, 2024 · 0 comments
Open

Affinity in sumologic-sumologic-otelcol-events StatefulSet is Discarded #3830

ugrkm opened this issue Aug 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ugrkm
Copy link

ugrkm commented Aug 20, 2024

Describe the bug A clear and concise description of what the bug is.
I want to be able configure affinity for sumologic-otelcol-events StatefulSet with using helm values file.

I checked how affinity is added. It seems like the template checks if it is empty, and if not, it adds other components such as podAntiAffinity. However, it does not add affinity itself. See: https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/v4.9.0/deploy/helm/sumologic/templates/events/otelcol/statefulset.yaml#L47-L57

If we look at https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/v4.9.0/deploy/helm/sumologic/templates/logs/otelcol/statefulset.yaml#L56-L58 we can see that the affinity is included in the sumologic-sumologic-otelcol-logs StatefulSet.

Configuration Configuration used for Collection e.g. user-values.yaml for helm.

sumologic:
  otelevents:
    statefulset:
      affinity:
        nodeAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - weight: 10
            preference:
              matchExpressions:
                - key: my-key
                  operator: In
                  values:
                    - "my-value"

To Reproduce Steps to reproduce the behavior.
You can try using above config as helm values file.
Expected behavior A clear and concise description of what you expected to happen.
We should see the affinity block added to sumologic-otel-col-events StatefulSet.

@ugrkm ugrkm added the bug Something isn't working label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant