# Discourse on k8s on a private network

**URL:** <https://meta.discourse.org/t/discourse-on-k8s-on-a-private-network/153243>\
**Category:** Development\
**Created:** [29 במאי,‏ 2020,‏ 3:13pm UTC](https://meta.discourse.org/t/discourse-on-k8s-on-a-private-network/153243 "2020-05-29T15:13:36Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [29 במאי,‏ 2020,‏ 6:49pm UTC](https://meta.discourse.org/t/discourse-on-k8s-on-a-private-network/153243/6 "2020-05-29T18:49:47Z")

</div>

> [@Divyaanand\_Sinha](#):
>
> One final doubt, so it seems i was pushing the wrong image, my bad.

Been there, done that. No worries, that is a very common mistake. That is why I asked 😛

> [@Divyaanand\_Sinha](#):
>
> So after i push the actual image I can change the env variables during k8s deployment right? Like DISCOURSE\_DB\_HOST etc? Because I have a separate postgres cluster and redis cluster!

Well, it’s complicated.

While you can easily overwrite those, just add the necessary ENV variable to the container run, during bootstrap we run migrations. If you try to point the image to a different database after bootstrapped the database schema will be completely wrong. Doing this would put you well into the #unsupported-install territory.

---

_[View the full topic](https://meta.discourse.org/t/discourse-on-k8s-on-a-private-network/153243)._
