Skip to main content
In this lesson we cover two essential cilium-cli commands for administering Cilium on a Kubernetes cluster: how to view the active Cilium configuration and how to enable debug-level logging for troubleshooting. These commands read from and modify the cilium-config ConfigMap and (when needed) trigger a restart of Cilium agents so changes take effect.
A simple presentation slide with the title "Cilium CLI" centered on a blue-to-teal gradient background. In the bottom-left corner is a small "© Copyright KodeKloud" notice.
Why these commands are useful:
  • Inspect current runtime and configuration values.
  • Temporarily increase logging detail to diagnose networking, policy, or datapath issues.
  • Apply and revert settings without editing ConfigMaps manually.

Quick command reference

View the current Cilium configuration

Use this to quickly inspect values stored in the cilium-config ConfigMap and confirm how Cilium is configured in the cluster:
If you prefer to inspect the raw ConfigMap with kubectl:
This is helpful when you want to see timestamps, annotations, or any fields not surfaced by the cilium CLI output.

Enable debug logging (toggle)

Enabling debug logging increases log verbosity from Cilium agents, which is useful when isolating issues in datapath, agent communication, or policy enforcement. The cilium CLI patches the cilium-config ConfigMap and restarts Cilium pods so agents pick up the change. Enable debug logging:
Typical CLI output after enabling debug:
To revert debug logging back to normal (disable verbose logs):

Verify pods and inspect logs

After toggling debug, confirm the pods restarted and examine logs:
When debug is enabled, logs will contain more detailed information about policy decisions, BPF loading, and datapath events. Use pod logs combined with cilium status and cilium endpoint list for deeper troubleshooting.
Enabling debug logging produces verbose output and can increase log volume significantly. Use it for troubleshooting and disable it (set debug false) when finished.
Do not leave debug logging enabled in production for long periods. Increased log volume can impact storage and performance and may expose sensitive internal details.

Watch Video