---
title: "How to Restart All Pods in a Kubernetes Namespace | Boot.dev"
description: "!https://blog.boot.dev/open-source/how-to-restart-all-pods-in-a-kubernetes-namespace/"
date: 2024-04-26
published: true
tags:
  - containers
  - kubernetes
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://blog.boot.dev/open-source/how-to-restart-all-pods-in-a-kubernetes-namespace/" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://api.boot.dev/v1/static/blog/devops/how-to-restart-all-pods-in-a-kubernetes-namespace/featured_image" alt="How to Restart All Pods in a Kubernetes Namespace | Boot.dev — Where I work, we use a repo-per-namespace setup and so it often happens that I want to restart all pods and deployments in a single Kubernetes namespace. Maybe I want to see the startup logs, or maybe I want to shut down production for a few seconds. Don" loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">How to Restart All Pods in a Kubernetes Namespace | Boot.dev</div>
      <div class="embed-card-description">Where I work, we use a repo-per-namespace setup and so it often happens that I want to restart all pods and deployments in a single Kubernetes namespace. Maybe I want to see the startup logs, or ma...</div>
      <div class="embed-card-meta">Boot.dev &middot; blog.boot.dev</div>
    </div>
  </a>
</div>


As of kubernetes 1.15 there is an easy way to restart all pods in a deployment.

``` bash
kubectl -n {NAMESPACE} rollout restart deploy
```

Thanks Lane give him a follow [@wagslane](https://twitter.com/wagslane)
