QuestionQ54Verified/Network PolicyCopy linkReport a problemAsk AstroTutorSave questionWhich statement is correct about this Cilium Network Policy? Question 21 Cilium Network Policy exhibitAIt will allow all traffic to the Kubemetes DNS servers from any pod in the default namespace.BIt will allow all traffic to the Kubernetes DNS servers from any pod across all namespaces in the clusterCIt will deny all traffic to the Kubernetes DNS servers from any pod across all namespaces in the cluster.DIt will deny all traffic to the Kubernetes DNS servers from any pod in the default namespace.Show AnswerAnswerExplanationA names the intended namespace and destination: an empty endpointSelector selects pods in the CiliumNetworkPolicy’s namespace, and the egress selector targets kube-dns endpoints in kube-system. The DNS wildcard matches all DNS names, not necessarily all traffic. As written, however, toPorts is a mapping rather than the required list, so the policy would not be accepted as shown. The default namespace is also an assumption because no namespace is specified. (docs.cilium.io)Learn moreUsing Kubernetes Constructs In PolicyCiliumNetworkPolicy CRD schemaShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion