Inspect endpoint policy

Show how policy is applied to one endpoint (drop the `jq` filter to see identity, BPF maps and more), run it inside the Cilium pod

cilium-dbg endpoint get <id> -o json | jq '.status.policy'

tool
cilium23 commands
tags
ciliumdebugk8snetwork

More cilium commands

  • cilium-dbg bpf lb list

    List service VIP to backend mappings in BPF, useful to check load balancing without kube-proxy

  • cilium-dbg bpf ct list global | head

    Inspect BPF connection tracking entries to find stale or leaking flows on a node

  • cilium-dbg policy trace --src-identity <id> --dst-identity <id> --dport <port>

    Explain why traffic between two security identities is allowed or denied, useful when NetworkPolicy drops packets

  • cilium status --verbose

    Full node health: datapath mode, IPAM, BPF maps, controllers, the first thing to run when something breaks

  • hubble observe --protocol tcp --from-pod <ns>/<pod> --to-fqdn '*.example.com'

    Live L3/L7 flows from a pod to a DNS name, useful to check FQDN-based egress policy

all 23 cilium commands