Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

Articles are written in English. The Thai translation button opens Google Translate; code and commands stay in their original form.

Kubernetes / Services, DNS & Traffic Routing

Investigate a network policy blocking backend or DNS egress

A Pod can become isolated for egress while still answering inbound health checks. Inspect all policies selecting it.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Kubernetes · kubectl with supported client/server versions and delegated RBAC. Examples use namespace app unless noted. Check context, namespace, APIs and provider support first.

Start with this check

Check which system and tools you are using. Replace example objects, namespaces, images, file paths and hosts with approved values. Remove sensitive information before sharing output. Follow the application owner’s process for changes.

kubectl -n app get networkpolicy -o yaml

What the results mean

Policies are additive within their defined semantics and require an enforcing network plugin. DNS and backend flows may need separate allowed destinations and protocols.

Fix the cause and check again

Compare Pod and namespace selectors with the actual destination, port and reply path. Request a narrow policy correction and validate permitted and denied flows.

Before changing production

Do not delete all policies or assume absence of one apparent deny rule means traffic is unrestricted.

Share this article

Back to all articles