Hello, I’m trying to use the Kubernetes Provider o...
# golang
Hello, I’m trying to use the Kubernetes Provider of my EKS Cluster (field Provider on the Cluster type https://pkg.go.dev/github.com/pulumi/pulumi-eks/sdk/go/eks#Cluster) to create resources in this cluster. However, I don’t know how to use it. I cannot just pass
as a resource option on a
call as its type is
which doesn’t seem to be compatible with
. Any idea?
It seems impossible to use this provider at the moment: https://github.com/pulumi/pulumi-eks/issues/602
Hi there, I’m quite new to Pulumi, so not sure whether this is a good enough answer, but I was able to create a provider this way:
Copy code
k8sProvider, err = kubernetes.NewProvider(ctx, "k8sprovider", &kubernetes.ProviderArgs{
			Kubeconfig: generateKubeconfig(cluster.Endpoint, cluster.CertificateAuthority.Data().Elem(), cluster.Name),
		}, pulumi.DependsOn([]pulumi.Resource{nodeGroup}))
I was then able to use the provider to install Helm charts.