Command

Kubernetes Restart a Deployment Command

The Kubernetes command to restart a deployment is kubectl rollout restart deployment/frontend.

Quick Answer

Command
kubectl rollout restart deployment/frontend
KubernetesCommand

Restart a Deployment

Type this command
kubectl rollout restart deployment/frontend

Performs a rolling restart of a deployment.

Learn More

How to restart a deployment in Kubernetes

  1. Open the terminal or command interface for Kubernetes.
  2. Type kubectl rollout restart deployment/frontend, replace any placeholders, and run it.

Kubernetes Restart a Deployment Command

Run kubectl rollout restart deployment/frontend.

Related Commands

Frequently asked questions

What is the Kubernetes command to restart a deployment?

Run kubectl rollout restart deployment/frontend.

Where do I type this Kubernetes command?

Type it in the terminal or command-line interface used by Kubernetes.

Does this Kubernetes command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify