A

Admin • 833.24K Points
Coach

Q. What does the 'spec.selector' field do in a Kubernetes Service definition?

  • (A) Specifies which nodes to use
  • (B) Selects pods that the service targets
  • (C) Defines the ingress rules
  • (D) Sets the number of replicas
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category Kubernetes
  • Hashtags:

Explanation by: Admin

`spec.selector` in a Service definition determines which pods the service will route traffic to based on labels.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.