Is there a way to get a k8sProvider from a newly c...
# general
h
Is there a way to get a k8sProvider from a newly created EKS cluster to be able to pass to a helm chart deployment in the same pulumi program?
I finally figured it out: I needed:
Copy code
const k8sProvider = new k8s.Provider("k8s", {kubeconfig: cluster.kubeconfig.apply(JSON.stringify)});

const kafkaChart = new k8s.helm.v2.Chart("kafka", {
    path: "../cp-helm-charts",
    namespace: "kafka",
}, {providers: {kubernetes: k8sProvider}});
Also realized this works as well:
Copy code
const kafkaChart = new k8s.helm.v2.Chart("kafka", {
    path: "../cp-helm-charts",
    namespace: "kafka",
}, {providers: {kubernetes: cluster.core.provider}});