We use labels to mark pods such as We may add as many labels as we want under the metadata app App1 function front-end
We use the selector to select the pod based on those labels
kubectl get pods --selector app=App1
The annotation field is used to store other details for informatory purposes.