If you need to restart a deployment in Kubernetes, perhaps because you would like to force a cycle of pods, then you can do the following:

Step 1 – Get the deployment name

1
kubectl get deployment

Step 2 – Restart the deployment

1
kubectl rollout restart deployment <deployment_name>