I am getting an error which says “got string expected map” please check the below screenshot!
check labels …
metadata: labels: tier: frontend
If you are describing Pod template in the any resource type like Deployment, ReplicaSet etc. Selector matchLabels should be match with the metadata labels.