https://pulumi.com logo
#golang
Title
# golang
g

gifted-city-99717

09/08/2020, 8:44 PM
anyone run into this? - not the thanos specific stuff, but gettng EKS to run a chart?
g

gentle-diamond-70147

09/08/2020, 8:51 PM
What is
eksProvider
in your code?
g

gifted-city-99717

09/09/2020, 1:42 AM
Copy code
eksProvider, err := providers.NewProvider(ctx, "eks-provider", &providers.ProviderArgs{
		Cluster: resource.EksCluster.Name,
	}, pulumi.DependsOn([]pulumi.Resource{resource.EksCluster}))
	if err != nil {
		return nil, err
	}
eksProvider is a *providers.Provider
Copy code
"<http://github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/providers|github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/providers>"
g

gentle-diamond-70147

09/09/2020, 1:47 AM
Ok, that's correct, but I believe you also need to be setting
Kubeconfig
on your
eksProvider
so that Pulumi knows how to connect to the Kubernetes control plane. Here's an example - https://github.com/pulumi/examples/blob/master/aws-go-eks/main.go#L147-L148.
4 Views