KCNA · Question #183
Which statement about Ingress is correct?
The correct answer is D. Ingress exposes routes from outside the cluster to services in the cluster. Ingress is a Kubernetes API object that manages external access to services within a cluster, typically HTTP and HTTPS traffic. It allows for advanced routing configurations, SSL termination, and name-based virtual hosting.
Question
Which statement about Ingress is correct?
Options
- AIngress provides a simple way to track network endpoints within a cluster.
- BIngress is a Service type like NodePort and ClusterIP.
- CIngress is a construct that allows you to specify how a Pod is allowed to communicate.
- DIngress exposes routes from outside the cluster to services in the cluster.
How the community answered
(35 responses)- A3% (1)
- C6% (2)
- D91% (32)
Why each option
Ingress is a Kubernetes API object that manages external access to services within a cluster, typically HTTP and HTTPS traffic. It allows for advanced routing configurations, SSL termination, and name-based virtual hosting.
Ingress does not track network endpoints; that is primarily handled by the Service object and Endpoints controller in Kubernetes.
Ingress is an API object that defines routing rules, distinct from Service types like ClusterIP, NodePort, and LoadBalancer, which determine how a Service is exposed within or outside the cluster.
A NetworkPolicy is the construct used to specify how Pods are allowed to communicate with each other and other network endpoints, not Ingress.
Ingress resources define rules for routing external HTTP/HTTPS traffic to specific services within the Kubernetes cluster. An Ingress controller, which is an external component, watches for Ingress resources and configures an edge router or load balancer to implement these routing rules, thereby exposing services to the outside world.
Concept tested: Kubernetes Ingress functionality
Source: https://kubernetes.io/docs/concepts/services-networking/ingress/
Topics
Community Discussion
No community discussion yet for this question.