<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>why not just run your CI server inside your kubernetes cluster then you don't have to manage secrets for accessing the cluster? We do that on <a href="https://jenkins-x.io/" rel="nofollow noreferrer">Jenkins X</a> and it works great - we can run kubectl or helm inside pipelines just fine.</p>
