asked 189k views
2 votes
How to restart deployment in kubernetes

1 Answer

4 votes

Final answer:

To restart a deployment in Kubernetes, you can use the kubectl command or perform the action through the Kubernetes dashboard. This triggers a rolling update, creating new pods with updated configuration and terminating old pods.

Step-by-step explanation:

To restart a deployment in Kubernetes, you can use the kubectl command-line tool or perform the action through the Kubernetes dashboard. Here's how:

  1. kubectl: Use the following command to restart the deployment:
    kubectl rollout restart deployment/[deployment-name]
  2. Kubernetes Dashboard: Follow these steps:

By restarting a deployment, you trigger a rolling update, which results in the creation of new pods with the updated configuration and termination of the old pods. This helps ensure that your application remains available during the update process.

answered
User ShlomiF
by
7.0k points

Related questions

asked Jul 4, 2024 19.7k views
Sourabrt asked Jul 4, 2024
by Sourabrt
8.0k points
1 answer
1 vote
19.7k views
asked Aug 4, 2024 97.8k views
Eugene Tusmenko asked Aug 4, 2024
by Eugene Tusmenko
7.9k points
1 answer
2 votes
97.8k views