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

Added dnsConfig set to Default #112

Merged
merged 2 commits into from
Jan 16, 2024
Merged

Added dnsConfig set to Default #112

merged 2 commits into from
Jan 16, 2024

Conversation

cabeaulac
Copy link
Contributor

The default, if not specified, is ClusterFirst which causes a circular DNS lookup and crashes LocalStack

Motivation

This is a necessary setting to run LocalStack Pro with DNS configured. If this isn't set, a circular DNS lookup between the ls-dns K8S service and the LocalStack Pod crashes the LocalStack Pod instance.
With this value set to Default, the circular DNS lookup is averted because the Pod inherits the nodes /etc/resolv.conf which is set to 127.0.0.1 and doesn't connect to Coredns first.

Changes

Allows the dnsConfig to be set in values.

Testing

Changes were tested on EKS Anywhere.

…terFirst which causes a circular DNS lookup and crashes LocalStack
@cabeaulac cabeaulac requested a review from robertlcx January 16, 2024 00:26
@cabeaulac cabeaulac self-assigned this Jan 16, 2024
@lakkeger lakkeger merged commit 5da47da into main Jan 16, 2024
2 checks passed
@lakkeger lakkeger deleted the add-dns-policy branch January 16, 2024 06:27
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