What is the primary purpose of an Ingress resource in Kubernetes?
Think about how users outside the cluster reach your applications.
Ingress manages external HTTP/S access to services inside the cluster by defining routing rules.
What is the output of the command kubectl get ingress when no Ingress resources exist in the default namespace?
kubectl get ingressConsider what Kubernetes shows when no matching resources exist.
The command returns a message indicating no ingress resources are found in the namespace.
Which NetworkPolicy YAML snippet correctly allows pods in the frontend label group to send outbound HTTP (port 80) traffic to any destination?
Remember that egress rules control outbound traffic and HTTP uses TCP port 80.
Option A correctly defines an egress rule allowing TCP traffic on port 80 from pods labeled role=frontend.
You created an Ingress resource, but external HTTP requests to your domain return 404 errors. Which is the most likely cause?
Think about what component handles Ingress routing.
If the Ingress controller is missing or not running, Ingress rules won't be applied, causing 404 errors.
Which approach is considered best practice to secure egress traffic from pods in a Kubernetes cluster?
Think about the principle of least privilege for network access.
Explicitly allowing only necessary egress traffic with NetworkPolicies reduces attack surface and is best practice.