# Doppler with container sigterm

**URL:** <https://community.doppler.com/t/doppler-with-container-sigterm/1327>\
**Category:** Need Help\
**Created:** [September 3, 2023, 1:58pm UTC](https://community.doppler.com/t/doppler-with-container-sigterm/1327 "2023-09-03T13:58:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Or\_Gabay](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/or_gabay/32/900_2.png) [@Or\_Gabay](https://community.doppler.com/u/Or_Gabay)\
**Post date:** [September 3, 2023, 1:58pm UTC](https://community.doppler.com/t/doppler-with-container-sigterm/1327/1 "2023-09-03T13:58:53Z")

</div>

Whats the best way to run a contianer in k8s cluster with doppler (right now i am using doppler in the enterpiont of the container) and make sure my process is geeting a proper sigterm for graceful shutdown

---

<div class="post-metadata">

**Author:** ![watsonian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/watsonian/32/267_2.png) [@watsonian](https://community.doppler.com/u/watsonian)\
**Post date:** [September 5, 2023, 2:34pm UTC](https://community.doppler.com/t/doppler-with-container-sigterm/1327/2 "2023-09-05T14:34:45Z")

</div>

Hi @Or_Gabay!

Welcome to the Doppler Community!

We recommend using our [Kubernetes operator](https://docs.doppler.com/docs/kubernetes-operator) with deployments in Kubernetes. This will allow you to configure which secrets you want synced from Doppler to Kubernetes secrets. Then your containers can just access them as they would any other Kubernetes secret. This has the added benefit of insulating you from any potential Doppler outages that may occur in the future and also decreasing API requests being made.

With regard to gracefully restarting your containers – you can set an [annotation](https://docs.doppler.com/docs/kubernetes-operator#automatic-redeployments) on your deployments (note that it must be a `Deployment` for this to work) and when a secret changes k8s will automatically redeploy the containers based on the strategy you have configured. If you need to restart other resource types outside of `Deployments`, then you should take a look at [Reloader](https://github.com/stakater/Reloader).

Let me know if you have any additional questions!

Regards,  
-Joel
