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

feat: allow setting the cluster DNS domain #3362

Merged
merged 1 commit into from
Oct 30, 2023
Merged

feat: allow setting the cluster DNS domain #3362

merged 1 commit into from
Oct 30, 2023

Conversation

swiatekm
Copy link

@swiatekm swiatekm commented Oct 26, 2023

It's possible to change the domain from the default cluster.local using KOPS or Kubespray, or just kubeadm directly. In that case, our endpoints won't resolve correctly. There's reasons to use the fully qualified names whenever possible, so I'm adding a setting for the cluster DNS domain for users who actually set a custom one.

There's no straightforward way to replace this for Prometheus remote write urls, so I've just removed the suffix completely. Given that Prometheus is slowly on the way out and not the default in v4, this should be fine.

See for reference on why we bother with this: #2502 kubernetes/kubernetes#56903 (comment)

Checklist

  • Changelog updated or skip changelog label added

@github-actions github-actions bot added the documentation documentation label Oct 27, 2023
We use cluster.local by default to speed up DNS resolution, but
this doesn't work in clusters with a custom domain.

The Prometheus remote write domain doesn't use the suffix because
there isn't any way to modify it from values.yaml other than manually.
@swiatekm swiatekm marked this pull request as ready for review October 27, 2023 09:44
@swiatekm swiatekm requested a review from a team as a code owner October 27, 2023 09:44
@swiatekm swiatekm changed the title fix: don't use the default cluster dns domain in urls feat: allow setting the cluster DNS domain Oct 27, 2023
@swiatekm swiatekm merged commit a1605ac into main Oct 30, 2023
34 checks passed
@swiatekm swiatekm deleted the fix/cluster-dns branch October 30, 2023 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants