Installing helm charts on kubernetes cluster

1/31/2020

I am new to devops and facing one issue.

I am trying to install helm chart into kubernetes cluster and dont know how to do it. Actually I know helm command to install but dont know how to install it on aws kubernetes cluster.

Access Kubernetes cluster: I access Kubernetes cluster with below command:

kubectl --kubeconfig=<path to config file> get pods -n dev

Now if I try to use helm chart with above command it errors out

kubectl --kubeconfig=<path to config file> helm list

Error: unknown command "helm" for "kubectl"

The error seems to be correct but I dont know how to access the kubernetes client via config file and running helm commands.

-- kapil gupta
amazon-web-services
kubernetes
kubernetes-helm

3 Answers

1/31/2020

Helm command is not part of kubectl. It's a separate tool you need to install. Please check the Helm official doc installation page.

After the installation you should be able to execute:

$ helm list
-- RafaƂ Leszko
Source: StackOverflow

2/3/2020

Not sure what was wrong but solved it with helm2. earlier I had helm3

-- kapil gupta
Source: StackOverflow

1/31/2020

Helm is a separate commandline tool. so just

helm list --kubeconfig <path to config file>
helm ls --kubeconfig <path to config file>

Btw. you can omit generall if its located in ~/.kube/config for both kubectl and helm commands

-- Flowkap
Source: StackOverflow