For working with selectors, here is an example find you can proceed with. The same can be extended to deployments and services.
$ kubectl create -f <file name for deployment>
$ kubectl get pods - -show-labels
$ kubectl get pods - -selector env=production
$ kubectl get pods --selector dev-lead=carisa
$ kubectl get pods --selector env=production,dev-lead=carisa
$ kubectl get pods --selector env=production,dev-lead!=carisa
$ kubectl get pods -l 'release-version in (1.0,2.0)'
$ kubectl get pods -l 'release-version notin (1.0,2.0)'
$ kubectl delete pods -l dev-lead=carisa