← All cheatsheets
$ cilium status --waitInstall 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 clustercilium status --waitWait until all Cilium parts are readycilium connectivity testRun the end-to-end network test suitecilium versionShow CLI and cluster versionscilium upgradeUpgrade Cilium in placecilium config viewShow the active Cilium configcilium sysdumpCollect a debug bundle for supportHubble observability
cilium hubble enable --uiEnable Hubble Relay and UIcilium hubble port-forward &Expose Hubble Relay locallyhubble statusCheck Hubble flow collectionhubble observe --namespace defaultStream flows for a namespacehubble observe --verdict DROPPEDShow dropped packets and whyhubble observe --pod default/frontend --protocol httpShow HTTP flows for one podcilium hubble uiOpen the Hubble service mapPolicies, encryption and Cluster Mesh
kubectl get ciliumnetworkpolicies -AList Cilium network policieskubectl get ciliumendpoints -AList endpoints and their identitieskubectl -n kube-system exec ds/cilium -- cilium-dbg endpoint listShow policy enforcement per endpointcilium encryption statusCheck WireGuard or IPsec encryptioncilium clustermesh enable --context $CLUSTER1Enable Cluster Meshcilium clustermesh connect --context $CLUSTER1 --destination-context $CLUSTER2Connect two clusterscilium clustermesh status --waitCheck Cluster Mesh healthL7 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/.*"