What Is Pod Selector & Labels?
In Kubernetes, Labels and Selectors are mentioned on the configuration file of the deployments and services. They are used to connect kubernetes services with a kubernetes pod.Labels are any key-value pairs that are used to identify that pod. The pod gets its label through the deployment which is like a blueprint for the pod before the pod is created. The Selector matches the label. Labels and selectors are required, to make connections between deployment, pods, and services.
Read the Kubernetes – Labels & Selectors
How To Stop Pod In Kubernetes ?
In the Kubernetes cluster stopping a pod is typically deleting the pod. Pods are meant to be ephemeral, meaning they can be created, destroyed, and replaced dynamically as needed. When the pod is deleted in Kubernetes the resources associated with the pod will be released.