<p>I am using the Gitlab Auto DevOps CI pipeline and I want to remove a deployment using helm.</p>

<p>I try to connect to tiller like this <code>helm init --client-only --tiller-namespace=gitlab-managed-apps</code> which results in </p>

<p><code>$HELM_HOME has been configured at /Users/marvin/.helm.
Not installing Tiller due to 'client-only' flag having been set
Happy Helming!</code></p>

<p><code>helm list --namespace=gitlab-managed-apps</code>returns <code>Error: could not find tiller</code></p>

<p>I had the same problem. I've found the solution to list releases here : <a href="https://forum.gitlab.com/t/orphaned-apps-in-gitlab-managed-apps-namespace/22717/9" rel="nofollow noreferrer">https://forum.gitlab.com/t/orphaned-apps-in-gitlab-managed-apps-namespace/22717/9</a></p>

<pre><code>export TILLER_NAMESPACE="gitlab-managed-apps"

kubectl get secrets/tiller-secret -n "$TILLER_NAMESPACE" -o "jsonpath={.data['ca\.crt']}" | base64 --decode &gt; tiller-ca.crt
kubectl get secrets/tiller-secret -n "$TILLER_NAMESPACE" -o "jsonpath={.data['tls\.crt']}" | base64 --decode &gt; tiller.crt
kubectl get secrets/tiller-secret -n "$TILLER_NAMESPACE" -o "jsonpath={.data['tls\.key']}" | base64 --decode &gt; tiller.key

helm list --tiller-connection-timeout 30 --tls --tls-ca-cert tiller-ca.crt --tls-cert tiller.crt --tls-key tiller.key --all --tiller-namespace gitlab-managed-apps
</code></pre>

<p>You can then run :</p>

<pre><code>helm delete &lt;name&gt; [--purge] --tiller-connection-timeout 30 --tls --tls-ca-cert tiller-ca.crt --tls-cert tiller.crt --tls-key tiller.key --tiller-namespace gitlab-managed-apps
</code></pre>

<p>Edit:</p>

<p>@mrvnklm proposed to use -D options for base64. In my case, it doesn't work anymore with "d" uppercased. After checks, I guess it's for macOs users(<a href="https://www.unix.com/man-page/osx/1/base64/" rel="nofollow noreferrer">man page base64 osx</a>). For linux, it seems to be "-d" (<a href="https://linux.die.net/man/1/base64" rel="nofollow noreferrer">man page linux</a>). Changed to "--decode" according to mrvnklm's comment.</p>
