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

service.dnsService also exposes DNS port of the kubernetes Service #120

Merged
merged 2 commits into from
May 17, 2024

Conversation

rattboi
Copy link
Contributor

@rattboi rattboi commented May 14, 2024

fixes #109

Motivation

Enabling service.dnsService doesn't actually expose the dns service in a way that is usable outside of port-forwarding.

Exposing the DNS port at the service level allows it to be used alongside clusterIP for DNS delegation with kube-dns or coredns.

Changes

Adds service-to-pod routing of port 53 for both TCP and UDP connections

@rattboi rattboi changed the title services.dnsService also exposes DNS port of the kubernetes Service service.dnsService also exposes DNS port of the kubernetes Service May 14, 2024
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

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

Thanks a lot for your contribution!
Unfortunately, the addition you added does not create a valid service manifest.
Let me know if you need help with the fix, and please make sure to test your changes on your side. We need to make sure that we don't break the chart for users who already have the dns service enabled.
I can recomment using kind to create a cluster locally for testing:

kind create cluster --name ls-demo
helm install ls-helm-demo ./charts/localstack/ -f charts/localstack/test-values.yaml

charts/localstack/templates/service.yaml Outdated Show resolved Hide resolved
@rattboi rattboi requested a review from alexrashed May 16, 2024 16:05
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks a lot for addressing the comments and thanks a lot for the contribution in general! 🚀
I'll go ahead and directly merge and release this :)

@alexrashed alexrashed merged commit d47961e into localstack:main May 17, 2024
2 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.

Exposing port 53 as localstack is also a DNS server
2 participants