# Activating Production Mode on kubernetes bitnami Helm Chart

**URL:** <https://forum.keycloak.org/t/activating-production-mode-on-kubernetes-bitnami-helm-chart/16275>\
**Category:** Configuring the server\
**Created:** [July 4, 2022, 6:48am UTC](https://forum.keycloak.org/t/activating-production-mode-on-kubernetes-bitnami-helm-chart/16275 "2022-07-04T06:48:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PascalF](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@PascalF](https://forum.keycloak.org/u/PascalF)\
**Post date:** [July 4, 2022, 6:48am UTC](https://forum.keycloak.org/t/activating-production-mode-on-kubernetes-bitnami-helm-chart/16275/1 "2022-07-04T06:48:53Z")

</div>

Hi, I would like to enable production mode on my Keycloak Chart ( bitnami, latest) but can’t find a way how to do it.  
The Docs say I should

> set `KEYCLOAK_PRODUCTION` to **true** and configure TLS

I have configured TLS already, but I don’t know where I should specify the ‘KEYCLOAK\_PRODUCTION’ variable.  
Anyone here who can help me? Thanks in advance  
Pascal

---

<div class="post-metadata">

**Author:** ![jap\_s](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/jap_s/32/6175_2.png) [@jap\_s](https://forum.keycloak.org/u/jap_s)\
**Post date:** [July 13, 2022, 5:22pm UTC](https://forum.keycloak.org/t/activating-production-mode-on-kubernetes-bitnami-helm-chart/16275/2 "2022-07-13T17:22:23Z")

</div>

Hey @PascalF I have same problem, I used bitnami helm chart and I deployed kc 18.0.2, but I can set “production mode” or “environment prod”  
Did you fix it yet ?

---

<div class="post-metadata">

**Author:** ![PascalF](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@PascalF](https://forum.keycloak.org/u/PascalF)\
**Post date:** [July 21, 2022, 7:58am UTC](https://forum.keycloak.org/t/activating-production-mode-on-kubernetes-bitnami-helm-chart/16275/3 "2022-07-21T07:58:32Z")

</div>

Hey, I fixed it - but not in the prettiest way.  
First, you have to add a variable to the extraEnvVars like this:

```auto
extraEnvVars:
  - name: KEYCLOAK_PRODUCTION
    value: true

```

and it should work theoretically - BUT in my case it only worked if your helm chart version is v9.3.3 or lower.  
Once you try to use a higher version it will throw a JDBC Connection error (and I haven’t found out how to fix it yet)

Hope this will help you 😃

---

<div class="post-metadata">

**Author:** ![jap\_s](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/jap_s/32/6175_2.png) [@jap\_s](https://forum.keycloak.org/u/jap_s)\
**Post date:** [July 21, 2022, 3:47pm UTC](https://forum.keycloak.org/t/activating-production-mode-on-kubernetes-bitnami-helm-chart/16275/4 "2022-07-21T15:47:50Z")

</div>

Thanks for your reply! I will try it.  
If i can resolve all, I will update this post.
