03/23/2022, 10:57 AM
Hey guys, I’m trying to create a Helm Release on an already exist cluster (managed by Pulumi). For some reason i’m getting this error on my
pulumi up
action on Github Actions:
+  kubernetes:<|> eks-bootstrap creating error: can't create Helm Release with unreachable cluster: unable to load Kubernetes client configuration from kubeconfig file: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
Here is the code i’m creating my Helm Release (occurs after the eks k8s cluster creation)
export function createHelmBootstrapChart(stackName: string) {

    const releaseArgs: k8s.helm.v3.ReleaseArgs = {
        atomic: true,
        name: "eks-bootstrap",
        chart: "./charts/eks-bootstrap-chart",
        dependencyUpdate: true,
        namespace: "kube-system",
        valueYamlFiles: [new FileAsset(`./charts/eks-bootstrap-chart/values-${stackName}.yaml`)]
    new k8s.helm.v3.Release("eks-bootstrap", releaseArgs)

Do you guys know how to set the Kubeconfig ? because it looks like the kubeconfig is missing during runtime on the github action.
Yeah, resolved it using provider on resourceOptions