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

Do not assume the kubernetes cluster domain #401

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adrianlzt
Copy link
Contributor

Summary

Adding the suffix "cluster.local" in the service domain breaks compatibility with k8s clusters with custom domains.

Just defining until ".svc" will use the "search" in /etc/resolv.conf to complete the domain with the correct value.

Checklist

  • reference any related issues
  • updated docs
  • updated unit tests
  • updated UPGRADING.md
  • add appropriate tag (improvement / bug / etc)
  • ready for review

Adding the suffix "cluster.local" in the service domain breaks
compatibility with k8s clusters with custom domains.

Just defining until ".svc" will use the "search" in /etc/resolv.conf to
complete the domain with the correct value.
@adrianlzt adrianlzt requested a review from a team as a code owner October 22, 2022 06:44
@adrianlzt adrianlzt requested review from wasaga and removed request for a team October 22, 2022 06:44
@adrianlzt
Copy link
Contributor Author

https://hacktoberfest.com/ ? 😄

@wasaga
Copy link
Collaborator

wasaga commented Oct 22, 2022

Hi @adrianlzt thanks for the PR!

Looking at https://github.com/kubernetes/dns/blob/master/docs/specification.md I cannot see that .svc search suffix is guaranteed by the spec, and I wonder if this is only true on some k8s distributions and the change may break others?

would you mind opening an Issue (linking to that PR) and describe your setup, so that we could better understand the custom domain / multi-zone support and solicit feedback from the community.

@wasaga wasaga added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. NeedsMoreData Waiting for additional user feedback or case studies labels Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. NeedsMoreData Waiting for additional user feedback or case studies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants