Skip to content

Commit

Permalink
TIL A few things about Cilium and DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarani committed Jan 15, 2025
1 parent 6bdcedb commit eb4b501
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions til/a-few-things-about-cilium-and-dns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: "A few things about Cilium and DNS"
date: "2025-01-15T10:17:38+01:00"
tags: ["kubernetes", "cilium", "dns"]
---

Some learnings from the webinar I attended yesterday:

FQDN, PQDN, hostnames and root zones
---

You can tell the DNS resolver to not traverse the search path if you explicitly put a full stop "." at the end of a FQDN. That tells the resolver the FQDN is specified up until the root zone. Not traversing the search path, for a standard EKS setup, means generating 4-5 times less DNS traffic. That has a big impact, especially on services that connect to external endpoints with low DNS TTLs.

musl libc and glibc resolvers are different
---

musl libc, in use in Alpine images, ignored ndots and search paths for a long time. Now they use it, but the behaviour is not the same as glibc, especially around NXDOMAIN codes (returned when a domain does not exist).


Multiple CoreDNS deployments
---

You can have more than one CoreDNS deployment per cluster, and configure them differently if you want them to.


`cilium fqdn cache` commands
---

Those commands can be used on the Cilium agent to check the state of Cilium DNS proxy, and to reset it if needed.


Hubble Enterprise policy suggestions
---

This version of Hubble has the ability to suggest policy changes on dropped traffic, in case we would like to change it to allow. The suggestion will not auto-apply, but rather can be used to create a Github PR.

0 comments on commit eb4b501

Please sign in to comment.