<p>Given below is my command to install bitnami keycloak on my kubernetes cluster</p>
<pre><code>helm install kc --set auth.adminPassword=admin,auth.adminUser=admin,service.httpPort=8180 bitnami/keycloak -n my-namespace
</code></pre>
<p>I want to import realms(contains users,groups,clients and roles) into my keycloak but before i do that i need to enable upload scripts flag , most of you might already know that we can do that in using standalone.sh as given below
on standalone keycloak installation</p>
<pre><code>bin/standalone.bat -Djboss.socket.binding.port-offset=10 -Dkeycloak.profile.featur
e.upload_scripts=enabled
</code></pre>
<p>can someone help me how can I do this using helm install command by passing flags just as I am doing for <code>auth.adminPassword=admin,auth.adminUser=admin,service.httpPort=8180</code></p>
<p>thanks in advance</p>

<p>In your Keycloak yaml file you need to add the field <code>extraEnvVars</code> and set the <code>KEYCLOAK_EXTRA_ARGS</code> environment variable as shown in the example below:</p>
<pre><code>keycloak:
  enabled: true
  auth:
    adminUser: admin
    adminPassword: secret
  extraEnvVars:
    - name: KEYCLOAK_EXTRA_ARGS
      value: -Dkeycloak.profile.feature.upload_scripts=enabled    
  extraVolumeMounts:
   ...
</code></pre>
<p>Bear in mind, however, that the feature <code>upload_scripts</code> will be remove from Keycloak in the future.</p>
<p>From <a href="https://www.keycloak.org/docs/latest/server_development/#using-keycloak-administration-console-to-upload-scripts" rel="nofollow noreferrer">Keycloak Documentation</a>:</p>
<blockquote>
<p>Ability to upload scripts through the admin console is deprecated and
will be removed in a future version of Keycloak</p>
</blockquote>
