<p>I am using kubernetes helm to deploy apps to my cluster. Everything works fine from my laptop when helm uses the cluster's kube-config file to deploy to the cluster.</p>

<p>I want to use helm from my CI/CD server (which is separate from my cluster) to automatically deploy apps to my cluster. I have created a k8s service account for my CI/CD server to use. But how do I create a kube-config file for the service account so that helm can use it to connect to my cluster from my CI/CD server??</p>

<p>Or is this not the right way to use Helm from a CI/CD server?  </p>

<p>Helm works by using the installed kubectl to talk to your cluster. That means that if you can access your cluster via kubectl, you can use helm with that cluster. </p>

<p>Don't forget to make sure you're using to proper context in case you have more than one cluster in you kubcfg file. You can check that by running <code>kubectl config current-context</code> and comparing that to the cluster details in the kubecfg.</p>

<p>You can find more details in Helm's docs, check the <a href="https://github.com/kubernetes/helm/blob/master/docs/quickstart.md" rel="nofollow noreferrer">quick start guide</a> for more information.</p>
