What is the purpose of a Kubernetes Service?
- To provide stable IP and DNS for Pod access ✓
- To schedule Pods on nodes
- To store application configuration
- To manage Pod lifecycle
Correct answer: To provide stable IP and DNS for Pod access
Option A is correct because a Kubernetes Service provides a stable virtual IP address and a consistent DNS name that abstracts the dynamic set of Pod endpoints behind it, enabling reliable network access even as Pods are created and destroyed. Option B is wrong because scheduling Pods onto nodes is the responsibility of the kube-scheduler, not a Service. Option C is wrong because storing application configuration is the purpose of ConfigMaps and Secrets, not Services. Option D is wrong because managing the Pod lifecycle, including restarts and desired replica counts, is handled by controllers such as Deployments and ReplicaSets.
Topic: · kubernetes, service, networking, dns