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.
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
Not sure what was wrong but solved it with helm2. earlier I had helm3
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