Question 19
Cloud Native ArchitectureWhich Kubernetes API object is used to manage external access to services in a cluster, typically HTTP/S?
Correct answer: C
Explanation
Ingress is the Kubernetes API object designed to manage external access to services, especially for HTTP and HTTPS traffic. It defines rules that route requests from outside the cluster to internal services, often based on hostnames or paths.
Why each option is right or wrong
A. Service (LoadBalancer type)
B. NodePort Service
C. Ingress
Kubernetes uses the Ingress API object to define HTTP and HTTPS routing rules from outside the cluster to internal Services, as specified in the networking.k8s.io/v1 Ingress resource. It is the standard object for host- and path-based request routing, and it works in conjunction with an Ingress Controller that actually implements the rules; by contrast, Service types like ClusterIP, NodePort, and LoadBalancer expose services differently rather than providing L7 routing.
D. ExternalName Service