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

[node] Add Optional dnsPolicy Configuration #313

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

ccubu
Copy link
Contributor

@ccubu ccubu commented Nov 22, 2023

Problem

In certain Kubernetes deployments, the default dnsPolicy of ClusterFirst can cause issues with the resolution of external domain names. This problem was particularly evident with telemetry endpoints, where nodes were unable to establish connections due to DNS resolution failures, defaulting to Kubernetes' internal DNS service (e.g., *.svc.cluster.local).

Proposed solution

This pull request introduces an optional configuration option dnsPolicy for nodes in the Helm charts. This change aims to address an issue where nodes running inside Kubernetes environments fail to properly resolve external URLs, specifically telemetry URLs, due to the default dnsPolicy setting.

@cla-bot-2021
Copy link

cla-bot-2021 bot commented Nov 22, 2023

User @ccubu, please sign the CLA here.

@bakhtin
Copy link
Contributor

bakhtin commented Nov 23, 2023

Hello, @ccubu and thanks for your contribution! Please, make sure to sign the CLA agreement here.

@@ -674,6 +674,10 @@ jaegerAgent:
# -- Annotations to add to the Pod
podAnnotations: {}

# dnsPolicy can be set to 'ClusterFirst', 'Default', 'None', or 'ClusterFirstWithHostNet'
Copy link
Contributor

Choose a reason for hiding this comment

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

We're using a specific format for annotating values. Check out the rest of the file. All the comments start with # --. This is a special syntax used by helm-docs tool that we use for autogenerating README file based on the annotated values.
Make sure to render an updated README.md by running helm-docs locally. Check out our contributing guide for the details.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad, already pushed a commit to fix it.

@bakhtin bakhtin merged commit 264635f into paritytech:main Nov 23, 2023
2 checks passed
@ccubu ccubu deleted the feat/add-dnspolicy branch November 23, 2023 17:42
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.

2 participants