<p>I’ve created helm chart which is working as expected, however I want to change the names of the deployed 
application
currently for each deployment I got different (random) name and I want it to be a fixed name, how can I do that?</p>

<p>This is the helper</p>

<pre><code>{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "unleash.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some K8S name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "unleash.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

</code></pre>

<p>This is the outcome of the name after deployment</p>

<pre><code>crabby-ibex-postgresql-0              0/1    Pending            0         1s
crabby-ibex-unleash-86775cdffd-xt575  0/1    ContainerCreating  0         1s
</code></pre>

<p>This is the names from the values yaml</p>

<pre><code>replicaCount: 1
namespace: unleash
restartPolicy: Never
name: a-unleash
nameOverride: unleash
</code></pre>

<p>e.g. I want it instead of </p>

<pre><code>crabby-ibex-unleash-86775cdffd-xt575
</code></pre>

<p>to be like</p>

<pre><code>unleash-service
uleash-postgressql 

</code></pre>

<p><strong>update</strong></p>

<p>I've added the following to the <code>_helper.tpl</code></p>

<pre><code>{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 26 | trimSuffix "-" -}}
{{- end -}}

</code></pre>

<p>and put the following in the <code>values.yml</code>
<code>fullnameOverride: apps</code></p>

<p>i expect that the artifacts will start with <code>apps</code> and it doesnt work</p>

Jenny M
<p>I don't know, why nobody posted it yet. You can pass the name of the Helm release to the <code>helm install</code> command:</p>

<p><code>helm install &lt;your_Chart.yaml_directory&gt; -n &lt;release_name&gt;</code></p>
