If you’re deploying a GKE cluster and then want to deploy a workload, here’s the general structure/flow you’ll want to follow:
1. Create the GKE cluster (we have a template,
kubernetes-gcp-{language}
, you can use to help with this).
2. Use the Kubeconfig from the cluster created in step 1 to create a Kubernetes provider.
3. Use the Kubernetes provider created in step 2 to deploy your workload.
The screenshot you posted would fall into step 3, where you’ll specify the Kubernetes details to deploy your containerized workload.
Does that help at all?
m
miniature-dusk-32394
07/03/2023, 3:02 PM
I'm not deploy a kubernetes cluster. I'm deploying to compute engine.
s
salmon-account-74572
07/03/2023, 3:04 PM
Ah, I see. Apologies. Have a look at the
container-gcp-{language}
templates (used with
pulumi new
) for an idea of how to do that. Be aware: Google recently deprecated Container Registry and replaced it with Artifact Registry, so there are some changes that need to be made to those templates. I hope to get those changes merged in today before the US July 4 holiday hits.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.