KCNA · Question #31
Which type of Service requires manual creation of Endpoints?
The correct answer is B. Services without selectors. Services configured without selectors require manual management and creation of their associated Endpoints resources.
Question
Which type of Service requires manual creation of Endpoints?
Options
- ALoadBalancer
- BServices without selectors
- CNodePort
- DClusterIP with selectors
How the community answered
(69 responses)- A4% (3)
- B88% (61)
- C1% (1)
- D6% (4)
Why each option
Services configured without selectors require manual management and creation of their associated Endpoints resources.
LoadBalancer Services typically use selectors to automatically discover and route traffic to pods, creating endpoints dynamically.
Services without selectors are used when the service needs to expose a resource outside the Kubernetes cluster or a service whose pods are not managed by Kubernetes. Since there are no pod selectors for Kubernetes to match, it cannot automatically discover and create endpoint objects, necessitating manual configuration of endpoints.
NodePort Services typically use selectors to automatically discover and route traffic to pods, creating endpoints dynamically.
ClusterIP Services configured with selectors automatically discover and manage their backing endpoints based on the specified pod labels.
Concept tested: Kubernetes Services without selectors and Endpoints
Source: https://kubernetes.io/docs/concepts/services-networking/service/#services-without-selectors
Topics
Community Discussion
No community discussion yet for this question.