<p>I have tried to run Helm for the first time. I am having deployment.yaml, service.yaml and ingress.yaml files alongwith values.yaml and chart.yaml.</p>
<p><strong>deployment.yaml</strong></p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: abc
  namespace: xyz
  labels:
    app: abc
    app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
  replicas: 3
  template:
    spec:
      containers:
        - name: abc
          image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
          ports:
            -
              containerPort: 8080
</code></pre>
<p><strong>service.yaml</strong></p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Service
metadata:
  name: abc
  labels:
    app.kubernetes.io/managed-by: {{ .Release.Service }}
  namespace: xyz
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-ssl-cert: {{ .Values.service.sslCert }}
spec:
  ports:
    - name: https
      protocol: TCP
      port: 443
      targetPort: 8080
    - name: http
      protocol: TCP
      port: 80
      targetPort: 8080
  type: ClusterIP
  selector:
    app: abc
</code></pre>
<p><strong>ingress.yaml</strong></p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: &quot;haproxy-ingress&quot;
  namespace: xyz
  labels:
    app.kubernetes.io/managed-by: {{ .Release.Service }}
  annotations:
    kubernetes.io/ingress.class: alb
</code></pre>
<p>From what I can see I do not think I have missed putting <code>app.kubernetes.io/managed-by</code> but still, I keep getting an error:</p>
<blockquote>
<pre class="lang-sh prettyprint-override"><code>rendered manifests contain a resource that already exists. Unable to
continue with install: Service &quot;abc&quot; in namespace &quot;xyz&quot; exists and
cannot be imported into the current release: invalid ownership
metadata; label validation error: missing key
&quot;app.kubernetes.io/managed-by&quot;: must be set to &quot;Helm&quot;; annotation
validation error: missing key &quot;meta.helm.sh/release-name&quot;: must be set
to &quot;abc&quot;; annotation validation error: missing key
&quot;meta.helm.sh/release-namespace&quot;: must be set to &quot;default&quot;
</code></pre>
</blockquote>
<p>It renders the file locally correctly.</p>
<p><code>helm list --all --all-namespaces</code> returns nothing.
Please help.</p>

harry123
<p>You already have some resources, e.g. service <code>abc</code> in the given namespace, <code>xyz</code> that you're trying to install via a Helm chart.</p>
<p>Delete those and install them via <code>helm install</code>.</p>
<pre><code>$ kubectl delete service -n &lt;namespace&gt; &lt;service-name&gt;
$ kubectl delete deployment -n &lt;namespace&gt; &lt;deployment-name&gt;
$ kubectl delete ingress -n &lt;namespace&gt; &lt;ingress-name&gt;
</code></pre>
<p>Once you have these resources deployed via Helm, you will be able to perform <code>helm update</code> to change properties.</p>
<p>Remove the <code>&quot;app.kubernetes.io/managed-by&quot;</code> label from your yaml's, this will be added by Helm.</p>
