k8wiz
Cilium
Medium
Troubleshooting

Which Hubble command shows which CiliumNetworkPolicy allowed or denied the connections in a namespace?

Select your answer:

Show answer and explanation

Answer: hubble observe -n shop -t policy-verdict --print-policy-names

Explanation

Policy verdict events record the policy decision for a connection. With --print-policy-names, Hubble adds the matched policies to the verdict, such as "DENIED BY name (CiliumNetworkPolicy)", using the network policy correlation that is on by default. On plain drop events the flag adds nothing, because Hubble only attaches policy names to policy verdict events.

Read more about Cilium