Bird
0
0

Which field in a CRD YAML defines the group name for the custom resource?

easy📝 Conceptual Q2 of 15
Kubernetes - Operators and Custom Resources
Which field in a CRD YAML defines the group name for the custom resource?
Aspec.names.kind
Bspec.scope
Cmetadata.name
Dspec.group
Step-by-Step Solution
Solution:
  1. Step 1: Identify group field in CRD spec

    The group is specified under spec.group to define the API group for the resource.
  2. Step 2: Check other fields

    spec.names.kind is the resource kind, metadata.name is the CRD name, spec.scope defines resource scope.
  3. Final Answer:

    spec.group -> Option D
  4. Quick Check:

    Group field = spec.group [OK]
Quick Trick: Group is always under spec.group in CRD YAML [OK]
Common Mistakes:
  • Confusing kind with group
  • Using metadata.name as group
  • Mixing scope with group

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes