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

Support exposing DNS UDP for service #129

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Conversation

simonrw
Copy link
Contributor

@simonrw simonrw commented Dec 16, 2024

Motivation

Currently enabling dnsService: true only exposes the DNS port to the service with the TCP protocol, whereas both TCP and UDP should be exposed. DNS was originally a UDP-based protocol.

Changes

Expose both TCP and UDP ports in the LocalStack deployment, if dnsService: true.

Testing

  • Deploy LocalStack into a cluster with dnsService: true from the main branch
  • Run kubectl run -i --tty --rm debug --image ghcr.io/simonrw/docker-debug:main --restart=Never -- dig @<localstack service ip address> example.com
    • this uses a Docker image built by me which contains the dig tool
  • The request should time out
  • Check out this branch
  • Repeat the test
  • The response should contain the IP address of example.com

@simonrw simonrw requested a review from alexrashed as a code owner December 16, 2024 22:45
@simonrw simonrw requested a review from dfangl December 16, 2024 22:45
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.

LGTM! Thanks for jumping on this! 💯

@alexrashed alexrashed merged commit ed42d87 into main Dec 17, 2024
2 checks passed
@alexrashed alexrashed deleted the fix/udp-dns-publishing branch December 17, 2024 08:11
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