Changing a Deployment's Selector
kubectl apply of a Deployment fails with spec.selector: field is immutable. What happened?
kubectl apply
spec.selector: field is immutable
Choose one answer
spec.selector was changed; it can't be.
spec.selector
The Deployment is paused, which blocks every change.
The namespace has a ResourceQuota that limits how many labels an object may have.
Labels on pods can never be changed.