k8wiz
Cilium
Hard
Policies

With Cilium's default policy enforcement mode, when does a pod go from allowing all ingress traffic to denying everything that isn't explicitly allowed?

Select your answer:

Show answer and explanation

Answer: As soon as any policy with an ingress section selects the pod

Explanation

In the default mode, an endpoint that no policy selects allows all traffic. Once a policy with ingress rules selects it, ingress becomes default-deny and only the listed peers get through. Egress is handled separately in the same way. The 'always' mode makes every endpoint default-deny even without a policy, and 'never' turns enforcement off.