Skip to content

fix(sandbox): allow kube-dns ClusterIP in sandbox DNS egress - #378

Merged
Sam123ben merged 1 commit into
mainfrom
fix/sandbox-dns-egress-clusterip
Aug 31, 2026
Merged

fix(sandbox): allow kube-dns ClusterIP in sandbox DNS egress#378
Sam123ben merged 1 commit into
mainfrom
fix/sandbox-dns-egress-clusterip

Conversation

@Sam123ben

Copy link
Copy Markdown
Member

Sandbox pods on GKE could not resolve any hostname: the DNS egress rule only matched the kube-system namespaceSelector, but lookups go to the kube-dns ClusterIP, which Dataplane V2 only admits via an ipBlock.

The control-plane pod now reads its own /etc/resolv.conf and appends each nameserver as a /32 ipBlock to the DNS rule — per-cluster correct with no new config, and degrades to the old behaviour if resolv.conf is unreadable.

Verified: unit suite green (2063 passed); regression tests cover both the ipBlock and the missing-resolv.conf fallback.

@Sam123ben
Sam123ben merged commit f8e0473 into main Aug 31, 2026
8 checks passed
@Sam123ben
Sam123ben deleted the fix/sandbox-dns-egress-clusterip branch August 31, 2026 08:38
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.

1 participant