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

helm: support for setting internalTrafficPolicy in k8s services #9619

Merged
merged 4 commits into from
Oct 18, 2024

Conversation

kovaxur
Copy link
Contributor

@kovaxur kovaxur commented Oct 15, 2024

What this PR does

Allows users to add internalTrafficPolicy to the Kubernetes Service of Ingester and Distributor.

Checklist

  • [N/A] Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • [N/A] about-versioning.md updated with experimental features.

@kovaxur kovaxur requested a review from a team as a code owner October 15, 2024 06:28
@CLAassistant
Copy link

CLAassistant commented Oct 15, 2024

CLA assistant check
All committers have signed the CLA.

@narqo
Copy link
Contributor

narqo commented Oct 15, 2024

Wouldn't it be equally valuable to have this feature in other mimir services, e.g. in querier, gateway, etc?

@kovaxur
Copy link
Contributor Author

kovaxur commented Oct 15, 2024

Wouldn't it be equally valuable to have this feature in other mimir services, e.g. in querier, gateway, etc?

Yeah, could be useful, I can add it to the rest. I think the most important is for the ingress direction.

@kovaxur kovaxur force-pushed the traffic-policy branch 3 times, most recently from a78c881 to 9efbef9 Compare October 15, 2024 14:23
…bernetes services. Enable internalTrafficPolicy only from Kubernetes version 1.22 or above.

Signed-off-by: Daniel Kovacs <[email protected]>
@narqo
Copy link
Contributor

narqo commented Oct 16, 2024

Overall, the changes look good to me. But the CI's found that this broke some known use-cases. Try running ct (from the mimir project's root):

% ct lint --config operations/helm/ct.yaml --check-version-increment=false

Alternatively, this also seems to show the problem:

# From the operations/helm/charts/mimir-distributed directory
% helm template . -f ./ci/test-enterprise-configmap-values.yaml

… use the global function to determine the cluster version

Signed-off-by: Daniel Kovacs <[email protected]>
Copy link
Contributor

@narqo narqo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 Works for me. Thank you.

CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: Vladimir Varankin <[email protected]>
@narqo narqo changed the title Traffic policy helm: support for setting internalTrafficPolicy in k8s services Oct 18, 2024
@narqo narqo merged commit 303d44c into grafana:main Oct 18, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants