Fix DNS network policy for NodeLocal DNSCache#88
Merged
tillrohrmann merged 1 commit intorestatedev:mainfrom Feb 5, 2026
Merged
Fix DNS network policy for NodeLocal DNSCache#88tillrohrmann merged 1 commit intorestatedev:mainfrom
tillrohrmann merged 1 commit intorestatedev:mainfrom
Conversation
Add support for NodeLocal DNSCache (169.254.20.10) in the DNS egress network policy. This fixes DNS resolution issues on GKE Autopilot and other Kubernetes environments that use node-local DNS caching. Changes: - Rename policy from allow-egress-to-kube-dns to allow-egress-to-dns - Add NodeLocal DNSCache IP (169.254.20.10/32) as allowed DNS target - Add migration logic to clean up old policy name - Add Troubleshooting section to README with DNS resolution guidance Fixes restatedev#54
jackkleeman
approved these changes
Feb 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
169.254.20.10) in the DNS egress network policyChanges
Network Policy Updated (
src/controllers/restatecluster/reconcilers/network_policies.rs):allow-egress-to-kube-dnstoallow-egress-to-dns169.254.20.10/32Documentation Added (
README.md):Root Cause
The previous DNS network policy only allowed traffic to
kube-dnspods via label selector. On GKE Autopilot (and other clusters with NodeLocal DNSCache enabled), DNS queries go to169.254.20.10instead, which was blocked.Testing
cargo clippyandcargo fmtFixes #54