In my case, I needed to recreate a group of many pods, controlled by different deployments/statefulsets with restartPolicy: Always
.spec.template.metadata.labels
.# kubectl get po -l "app_group=my_grp"
.spec.template.spec.restartPolicy
):# kubectl delete po -l "app_group=my_grp"
Make sure that the old pods are terminating and new ones should be created instead:
# kubectl get po -w
But there's probably a better way.