🔥 3-day streak
Kubernetes and Cloud Native Associate40 / 142
Question 40 of 142

A developer is writing a Deployment manifest. They set spec.selector.matchLabels to {app: web, tier: frontend}, but under spec.template.metadata.labels they only put {app: web}. When they run kubectl apply, the command is rejected. What is the reason for this error?

Reviewed for accuracy · Report an issueNext question