k8wiz
Cilium
Medium
Commands

Which command would you use to view Cilium network policies in a namespace?

Select your answer:

Show answer and explanation

Answer: kubectl get ciliumnetworkpolicies -n <namespace>

Explanation

The 'kubectl get ciliumnetworkpolicies -n <namespace>' command is used to view Cilium network policies (CiliumNetworkPolicy resources) in a specific namespace. This shows all the Cilium-specific network policies that have been defined in that namespace.

Read more about Cilium