Helm remote connection on Kubernetes server

11/15/2018

I need to move my helm (/usr/local/bin/helm) to another server, and I can't work out how to helm to connect to remote tiller or a remote Kubernetes server.

Helm is running locallyy on the server B (k8s). I want it to run server A, to be able to connect to the server B to execute the YAML files.

-- morla
kubernetes
kubernetes-helm

2 Answers

11/15/2018

IIRC Helm should act against whichever cluster is set as your current context for kubectl on server A.

Set up kubectl on your server. Use kubectl config use-context to target the cluster and helm should follow.

You'll probably want to do helm init --client-only on the server to initialize helm without reinstalling tiller.

NOTE: This only applies to Helm 2. Tiller has been removed in Helm 3.

-- switchboard.op
Source: StackOverflow

2/28/2020

The docs for Helm really skim over this and don't do a good job of explaining but after closer inspection:

You should also have a local configured copy of kubectl.

https://helm.sh/docs/intro/quickstart/

Helm will figure out where to install Tiller by reading your Kubernetes configuration file (usually $HOME/.kube/config). This is the same file that kubectl uses.

https://v2.helm.sh/docs/using_helm/

@switchboard.op is correct just adding this as an answer with some more ancillary information

-- Alex W
Source: StackOverflow