<p>I am trying to deploy a rest api application in kubernetes with helm. Some of the configuration files have credentials in them and I would like to replace the variables inside the helm templates during the deployment with Kubernetes secrets.</p>
<p>Does anyone have a pointer to a documentation where I can explore this please ?</p>

S1c0r4x
<p>Create a Secret template in your templates folder. Then, you can pass the values through helm cli.</p>
<p>For example, here is my <code>secret.yaml</code> file.</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Secret
metadata:
  name: mysecret
type: Opaque
data:
  password: {{ .Values.password | b64enc }}
</code></pre>
<p>Now, I can set the value for <code>password</code> as bellow:</p>
<pre><code>helm install  my-chart-instance my-chart -n my-namespace --set password=my-secret-value 
</code></pre>
