k8wiz
Cilium
Medium
Commands

Which command would you use to view the Cilium agent logs on a specific node?

Select your answer:

Show answer and explanation

Answer: kubectl logs -n kube-system <cilium-pod-name>

Explanation

To view the Cilium agent logs on a specific node, you would use 'kubectl logs -n kube-system <cilium-pod-name>', where <cilium-pod-name> is the name of the Cilium pod running on that node. Cilium runs as a DaemonSet, so there's one pod per node, and the pod name typically includes the node name.

Read more about Cilium