Various ways to restart pods
Restart deployment
The most gracefull way is to trigger a restart for the deployment. In this case, a pod will only be terminated once the new pod is ready. It will slowly replace all pods one after the other.
kubectl rollout restart deployment <deployment-name>