# Automatic Service Restart

> Automatic Service Restarts based on ConfigMap or Secret changes.

---

Site [llms.txt](/llms.txt)

---

To enable the restart of Deployments, StatefulSets, and DaemonSets when changes are made to the mounted Secrets or ConfigMaps, without the need for tools like Helm, the Kube utilizes [stakater/Reloader](https://github.com/stakater/Reloader).

For example, the annotation

```yaml
secret.reloader.stakater.com/reload: "foo-secret"
```

on a Deployment would result in the Deployment being restarted whenever the content of the `foo-secret` Secret changes.

For a more detailed description of the full functionality, please refer to the [documentation of the Reloader](https://github.com/stakater/Reloader#how-to-use-reloader) itself.
