https://pulumi.com logo
Title
l

lively-needle-84406

10/06/2022, 2:15 PM
Morning everyone! I am having an issue with applying Istio helm charts into my EKS cluster using Pulumi. Base:
export const istioBaseChart = new k8s.helm.v3.Release("istio-base", {
    chart: "base",
    version: istioVersion,
    namespace: istioNamespace.metadata.name,
    repositoryOpts: {
        repo: "<https://istio-release.storage.googleapis.com/charts>",
    },
    
}, {
    dependsOn: [cluster, istioNamespace]
});
Istiod:
export const istiod = new k8s.helm.v3.Chart("istiod", {
    chart: "istiod",
    version: istioVersion,
    namespace: istioNamespace.metadata.name,
    fetchOpts: {
        repo: "<https://istio-release.storage.googleapis.com/charts>",
    },
}, {
    dependsOn: [cluster, istioNamespace, istioBaseChart]
});
The error I am receiving is:
kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> (istio-base):
    error: could not get server version from Kubernetes: Get "<https://B042EE83435E804CA59AE3C4ACC5C169.sk1.us-west-1.eks.amazonaws.com/version?timeout=32s>": dial tcp: lookup <http://xxxxxxxxxxxxxx.sk1.us-west-1.eks.amazonaws.com|xxxxxxxxxxxxxx.sk1.us-west-1.eks.amazonaws.com> on [xxxx:xxxx:xxx:xxxx::x]:xx: no such host
To me, this looks like the dependency on the cluster and other resources is not being honored. Any ideas how to ensure the cluster and other resources get created properly before applying these charts?
b

billowy-army-68599

10/06/2022, 2:58 PM
you need to create a provider, and then pass that provider to the chart. here’s an example: https://github.com/jaxxstorm/pulumi-examples/blob/main/typescript/aws/eks_harness/index.ts#L33
l

lively-needle-84406

10/06/2022, 3:41 PM
@billowy-army-68599 You are a life saver! Exactly the info I needed. Appreciate it!