cat >> rs.yaml <<EOL
- name: httpd
kubectl apply -f rs.yaml
kubectl get rs
# OR a more specific way: kubectl get -f rs.yaml
kubectl get po > running_pods.txt
kubectl label pod <POD_NAME> type-
Yes, there is an additional Pod running because once the label (used as a matching selector) was removed, the Pod became independant meaning, it's not controlled by the ReplicaSet anymore and the ReplicaSet was missing replicas based on its definition so, it created a new Pod.