https://pulumi.com logo
m

many-pencil-40333

07/31/2023, 8:31 PM
Copy code
kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> (ingress-nginx):
    error: could not get server version from Kubernetes: Get "https://<redacted ip>/version?timeout=32s": dial tcp <redacted ip>:443: i/o timeout
anyone know why the helm release resource seems to be making the above api call despite the cluster itself not being up yet? The cluster resource is currently in
depends_on
s

salmon-account-74572

07/31/2023, 8:38 PM
How did you construct the Kubernetes provider being used by the Helm resource? I’d think
depends_on
would handle it, but if you aren’t using an explicit provider you might need to do that.
m

many-pencil-40333

07/31/2023, 9:07 PM
annoyingly i can't find a good example programmatically generating the provider for GKE
s

salmon-account-74572

07/31/2023, 9:12 PM
Which language? The
kubernetes-gcp-{lang}
templates in https://github.com/pulumi/templates should have an example of generating a Kubeconfig for GKE.
m

many-pencil-40333

07/31/2023, 9:25 PM
oh i think this is exactly what i was looking for. I'm using python for devops, but we use go for prod code. ty!
s

salmon-account-74572

07/31/2023, 11:05 PM
Happy to help!