300-910 · Question #35
Which Kubernetes object is used to create a ClusterIP or NodePort?
The correct answer is A. service. The question asks to identify the Kubernetes object responsible for creating ClusterIP or NodePort network access.
Question
Options
- Aservice
- Bpod
- Cdeployment
- Dloadbalancer
How the community answered
(49 responses)- A92% (45)
- B2% (1)
- C4% (2)
- D2% (1)
Why each option
The question asks to identify the Kubernetes object responsible for creating ClusterIP or NodePort network access.
A Kubernetes Service is the abstract way to expose an application running on a set of Pods as a network service. Service types like ClusterIP, NodePort, and LoadBalancer define how the service is made accessible within or outside the cluster.
A Pod is the smallest deployable unit in Kubernetes, encapsulating one or more containers, but it does not directly provide the ClusterIP or NodePort abstraction.
A Deployment manages a replicated set of Pods and their lifecycle, but it relies on a Service to expose those Pods to the network.
"LoadBalancer" is a type of Kubernetes Service, not a distinct Kubernetes object that creates ClusterIP or NodePort; the Service object itself defines this type.
Concept tested: Kubernetes Service object types
Source: https://kubernetes.io/docs/concepts/services-networking/service/
Topics
Community Discussion
No community discussion yet for this question.