Bird
0
0

Which field in a ReplicaSet YAML defines the pod template used to create pods?

easy📝 Conceptual Q2 of 15
Kubernetes - ReplicaSets and Deployments
Which field in a ReplicaSet YAML defines the pod template used to create pods?
Aspec.selector
Bmetadata.labels
Cspec.template
Dstatus.replicas
Step-by-Step Solution
Solution:
  1. Step 1: Identify pod template location

    The pod template is defined under spec.template in the ReplicaSet YAML.
  2. Step 2: Understand other fields

    metadata.labels are labels for the ReplicaSet itself, spec.selector matches pods, and status.replicas shows current pod count.
  3. Final Answer:

    The pod template is defined in spec.template -> Option C
  4. Quick Check:

    Pod template = spec.template [OK]
Quick Trick: Pod specs live inside spec.template [OK]
Common Mistakes:
  • Confusing selector with pod template
  • Looking for pod template in metadata
  • Using status fields to define pods

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes