The policy attaches an HTTP Layer 7 rule to port 80 but omits protocol: TCP from the associated ports entry. HTTP policy is layered on a Layer 4 TCP rule, and the documented Cilium form explicitly identifies TCP before specifying the HTTP method and path. D therefore identifies the configuration defect intended by the question.
The cross-namespace source selection is valid. The policy resides in namespace back and selects backend pods there. Its fromEndpoints selector explicitly includes k8s:io.kubernetes.pod.namespace: blog , allowing it to select matching app-frontend endpoints in that other namespace. Option A is consequently not an error.
The k8s: source prefix in k8s:app.kubernetes.io/name is also valid Cilium label syntax and identifies the Kubernetes label source, making B false. Port 80 may be used in a Cilium policy; the privileged-port restriction concerns which processes may bind low-numbered ports under operating-system permissions, not whether a network policy can reference them.
The corrected port entry should contain port: "80" together with protocol: TCP .
Official references
Cilium Layer 7 Policies , Kubernetes Constructs in Cilium Policy
Study Guide topic: Combining Layer 4 port rules with Layer 7 HTTP policies.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit