Skip to content

feat(pihole): add CiliumNetworkPolicies for dns namespace#145

Open
madic-creates wants to merge 1 commit into
mainfrom
feature/auto-pihole-network-policies
Open

feat(pihole): add CiliumNetworkPolicies for dns namespace#145
madic-creates wants to merge 1 commit into
mainfrom
feature/auto-pihole-network-policies

Conversation

@madic-creates

@madic-creates madic-creates commented Apr 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds default-deny CiliumNetworkPolicy for the dns namespace
  • Adds app-specific CiliumNetworkPolicy for pihole-01 with explicit allow rules
  • Registers both policies in apps/pihole-01/kustomization.yaml

pihole-01 and pihole-02 shared the dns namespace with no network
policies at all, leaving DNS infrastructure unprotected. Add:
- dns-default-deny: namespace-wide default-deny covering all pods
  in the dns namespace (pihole-01, pihole-02, exporter, nebula-sync)
- pihole: allows DNS/53 ingress from all cluster pods, web UI access
  from Traefik, cloudflared DoH port from cert-manager, Prometheus
  API access from pihole-exporter, and egress to world/443 for
  cloudflared upstream resolution
- pihole-exporter: allows Prometheus scrape on 9617 from monitoring
  namespace, egress to pihole API on 80
- nebula-sync: allows egress to pihole HTTP API for config sync

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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