Skip to content

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

Merged
alexrashed merged 2 commits intolocalstack:mainfrom
rattboi:rattboi/expose-dns-service-ports
May 17, 2024
Merged

service.dnsService also exposes DNS port of the kubernetes Service#120
alexrashed merged 2 commits intolocalstack:mainfrom
rattboi:rattboi/expose-dns-service-ports

Conversation

@rattboi
Copy link
Copy Markdown
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
Copy Markdown
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

@rattboi rattboi requested a review from alexrashed May 16, 2024 16:05
Copy link
Copy Markdown
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
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