k8wiz
Cilium
Medium
Policies

Since Cilium 1.20.5, what happens to egress allowed by a rule that combines toServices and toPorts when the referenced Service doesn't exist?

Select your answer:

Show answer and explanation

Answer: It is denied until the Service exists

Explanation

Earlier releases resolved the missing Service to an empty peer set, so the port restriction stood alone and allowed any destination on those ports. Cilium 1.20.5, 1.19.11 and 1.18.17 fix this, and such rules now deny the traffic until the Service exists and, for a selector-less Service, has backends. The upgrade notes ask you to create those Services before upgrading.

Read more about Cilium