k8wiz
Cilium
Hard
Security

You want a Cilium policy that limits which traffic can reach the Kubernetes nodes themselves. Which resource and selector do you use?

Select your answer:

Show answer and explanation

Answer: A CiliumClusterwideNetworkPolicy with a nodeSelector, with the host firewall enabled

Explanation

Host policies protect the node, not pods. They must be CiliumClusterwideNetworkPolicies that use nodeSelector instead of endpointSelector, and the host firewall must be enabled (hostFirewall.enabled=true). Start with audit mode on the host endpoint, because a mistake can cut off SSH or kubelet traffic.