Hi, I am working on my first Pulumi project (TS). ...
# getting-started
f
Hi, I am working on my first Pulumi project (TS). I just deployed an EKS cluster with the AWS provider. Now I'm trying to deploy Helm charts on it. I'm more used to Terraform when it comes to configuring Kubernetes or Helm providers for deployment on the cluster. With Pulumi, I'm a little confused. I need a kubeconfig to define the Kubernetes provider, but I can't seem to dynamically retrieve this kubeconfig file. So I tried to write this kubeconfig, but I'm not sure if this is the right way to do it.
m
The
pulumi-eks
package has a function for generating a kubeconfig for an EKS cluster that you could use: https://github.com/pulumi/pulumi-eks/blob/master/nodejs/eks/cluster/cluster.ts#L203
m
Did you figure it out @faint-fish-71835? With eks there is .kubeconfig which you can output. Freecodecamp has a video that covers EKS with Pulumi that might be helpful in general:

https://www.youtube.com/watch?v=hK8wf18SasY

And this video might be relevant as well.

https://www.youtube.com/watch?v=OsTt54zkQVA

f
Thanks, I know the eks package has a function to generate the kubeconfig, but I'm using the generic aws package which doesn't have it. But I figured out how to do it.