<p>I am installing dashboard service using helm.  Its create pods and service name like this <strong><em>kubernetes-dashboard-kubernetes-dashboard</em></strong>. How can remove the duplicate <strong><em>kubernetes-dashboard</em></strong> word from the name.</p>

<pre><code>helm install stable/kubernetes-dashboard  --name kubernetes-dashboard --namespace  kube-system
</code></pre>

<p>output</p>

<pre><code> k get svc  -n kube-system  |grep dashboard
kubernetes-dashboard-kubernetes-dashboard   10.96.114.17     &lt;none&gt;        80/TCP          26m
</code></pre>

<p>thanks
SR</p>

<p>I'm afraid you can not achieve this without changes in kubernetes-dashboard helm chart. </p>

<p>According this code </p>

<pre><code>  _helpers.tpl
  ...
  {{ define "fullname" }}
  {{- $name := default "kubernetes-dashboard" .Values.nameOverride -}}
  {{ printf "%s-%s" .Release.Name $name | trunc 63 -}}
  {{ end }}
  ...

  svc.yaml

  ...
  metadata:
    name: {{ template "fullname" . }}
  ...
</code></pre>

<p>service/pod name is concatenated from release name and "kubernetes-dashboard".</p>

<p>You can adjust "fullname" template to fix this.</p>
