# How to ensure your Kubernetes Pods and containers can restart automatically

DevFeed: [How to ensure your Kubernetes Pods and containers can restart automatically](<https://devfeed.tech/articles/how-to-ensure-your-kubernetes-pods-and-containers-can-restart-automatically-11616.md>)

Original publisher: [Read original article](<https://www.gremlin.com/blog/how-to-ensure-your-kubernetes-pods-and-containers-can-restart-automatically>)

Author: Andre Newman

Published: 2024-04-16T00:00:00Z

Content type: tutorial

Language: en

Sources: [Gremlin Blog](<https://devfeed.tech/sources/gremlin-blog.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [Availability](<https://devfeed.tech/topics/availability.md>)

Tags: [availability](<https://devfeed.tech/tags/availability.md>), [containers](<https://devfeed.tech/tags/containers.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>)

## AI overview

This tutorial explains how to configure Kubernetes to detect and restart failed containers automatically. It covers Pod restart policies, liveness probes, Pod failure states, and testing whether recovery mechanisms work as expected.

## Source excerpt

What happens when your Kubernetes container fails? Does it restart, or does it enter a crash loop? Learn how to ensure your containers restart reliability with Gremlin.