<p>I am trying to install Kubernetes Helm and Tiller for my Kubernetes cluster. Currently I installed Helm client by following command,</p>

<pre><code>sudo snap install helm --classic
</code></pre>

<p>And now I am trying to run '<strong>helm init</strong>' command to install Tiller in my cluster. I have my configuration file in <strong>.kube/config</strong> path. And I am running the helm init command. But When I am running this, I am getting the following error:</p>

<p><strong>Updated Error</strong></p>

<pre><code>$HELM_HOME has been configured at /home/docker/.helm.
Error: error installing: deployments.extensions is forbidden: User "system:node:mildevkub020" cannot create resource "deployments" in API group "extensions" in the namespace "kube-system"
</code></pre>

<p>Do I need to change any cluster information in kubelet.conf? How I can resolve this error?</p>

<p>You are getting this error because you have not initialized helm with a service account.</p>

<p>In rbac-config.yaml:</p>

<pre><code>apiVersion: v1
kind: ServiceAccount
metadata:
  name: tiller
  namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: tiller
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
  - kind: ServiceAccount
    name: tiller
    namespace: kube-system
</code></pre>

<p><strong>Step 1</strong>: kubectl apply -f rbac-config.yaml</p>

<p><strong>Step 2</strong>: helm init --service-account tiller --history-max 200</p>

<p><strong>Step 3</strong>: Test the setup with <code>heml ls</code>. There would not be any output from running this command and that is expected. Now, you can run <code>helm create myfirstchart</code></p>
