Cilium identities you'll meet
About 700 words
Cilium decides on traffic by identity, not by address. A pod's identity comes from its labels, which is what an endpoint's selector matches. Traffic that doesn't come from a pod Cilium manages gets one of a handful of reserved identities, and policies name them as entities: entity:world, entity:kube-apiserver and so on. When you read audited or dropped flows during a rollout, these are the ones that surprise people. Peer syntax lists every entity the plugin accepts.
Webhooks arrive as remote-node
The API server calls admission webhooks (cert-manager's, an operator's, a policy engine's) on their Service. You'd expect Cilium to see those calls as kube-apiserver. On many clusters it doesn't: the API server's connection leaves from its node's own address, and Cilium identifies traffic from another node's address as remote-node. On some managed Kubernetes services, the API server runs outside the cluster entirely, and Cilium's documentation notes that the kube-apiserver entity may not work for ingress there.
So a webhook needs both:
specht-labs.de/cilium-allow: entity:kube-apiserver, entity:remote-noderemote-node is every other node of the cluster, so this opens the webhook's port to anything running on any node's host network. That's usually acceptable for a webhook port; keep cilium-ports on the entity so it's only that port. If an audited flow shows host instead (the API server on the same node as the webhook pod), allow entity:host as well.
The other direction, a pod calling the API server, works as you'd expect: entity:kube-apiserver as a destination, on the port the API server listens on, 6443 on most clusters.
Pods on the host network are the node
Some pods share their node's network namespace: node exporters, eBPF agents such as Beyla, cloud controller managers, some CSI drivers. Cilium doesn't manage them as endpoints; their traffic has the node's identity, host on their own node and remote-node everywhere else.
So a host-network pod can't be an endpoint. If you model it with a namespace and selector, its policy renders but never selects anything. Model its traffic from the other end instead: if node-exporter on every node is scraped by Prometheus, that's an egress from Prometheus to remote-node and host on node-exporter's port, written as a rule entity. If a host-network agent reaches a pod, allow it on the pod with cilium-allow: entity:remote-node, entity:host.
The local host is always allowed
By default, Cilium allows traffic from a pod's own node to the pod, so the kubelet's liveness and readiness probes keep working under a default deny. You don't need to model probes. (Cilium can be configured to put this under policy as well, with its allow-localhost option set to policy; then probes need an allow from host.)
Outside the cluster is world
Anything that isn't a pod, a node or the API server of this cluster is world: the internet, your office, another cluster's API server behind its load balancer. entity:world allows all of it, which is the right thing for a public gateway and too much almost anywhere else. For a known destination, name it with fqdn: or cidr: instead. Cilium also has world-ipv4 and world-ipv6, the same split by address family.
The ones you rarely need
| Entity | Is |
|---|---|
cluster | every endpoint and node of the local cluster |
ingress | Cilium's own Envoy, when Cilium's ingress controller or Gateway API support handles the traffic |
health | the health-check endpoint Cilium runs on each node |
init | endpoints whose identity isn't resolved yet, during startup |
unmanaged | endpoints Cilium doesn't manage |
all | everything |
ingress matters if Cilium itself is your gateway: the traffic then reaches your pods from ingress, not from a gateway pod you could select, and the endpoint needs cilium-allow: entity:ingress.
