Cilium Cheatsheet

← All cheatsheets
$ cilium status --wait
IntermediateNetworkingUpdated October 2026

Install and check Cilium, observe traffic with Hubble, connect clusters with Cluster Mesh, and debug network policy drops.

Install and health

cilium installInstall Cilium into the current cluster
cilium status --waitWait until all Cilium parts are ready
cilium connectivity testRun the end-to-end network test suite
cilium versionShow CLI and cluster versions
cilium upgradeUpgrade Cilium in place
cilium config viewShow the active Cilium config
cilium sysdumpCollect a debug bundle for support

Hubble observability

cilium hubble enable --uiEnable Hubble Relay and UI
cilium hubble port-forward &Expose Hubble Relay locally
hubble statusCheck Hubble flow collection
hubble observe --namespace defaultStream flows for a namespace
hubble observe --verdict DROPPEDShow dropped packets and why
hubble observe --pod default/frontend --protocol httpShow HTTP flows for one pod
cilium hubble uiOpen the Hubble service map

Policies, encryption and Cluster Mesh

kubectl get ciliumnetworkpolicies -AList Cilium network policies
kubectl get ciliumendpoints -AList endpoints and their identities
kubectl -n kube-system exec ds/cilium -- cilium-dbg endpoint listShow policy enforcement per endpoint
cilium encryption statusCheck WireGuard or IPsec encryption
cilium clustermesh enable --context $CLUSTER1Enable Cluster Mesh
cilium clustermesh connect --context $CLUSTER1 --destination-context $CLUSTER2Connect two clusters
cilium clustermesh status --waitCheck Cluster Mesh health

L7 policy example

apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
  name: allow-get-api
spec:
  endpointSelector:
    matchLabels:
      app: api
  ingress:
  - fromEndpoints:
    - matchLabels:
        app: frontend
    toPorts:
    - ports:
      - port: "8080"
        protocol: TCP
      rules:
        http:
        - method: GET
          path: "/v1/.*"