In Pulumi, I want to target a specific Kubernetes ...
# general
f
In Pulumi, I want to target a specific Kubernetes cluster in my kubectx. I have three envs: • local ( local docker ) • dev • stg How do I explicitly target these k8s clusters in code? I am in GoLang.
s
You pass the specific kubernetes provider to the resources in the
opts
on each resource
b
there's 2 options: • use an explicit provider like Curtis said, and pass it to the resource. Here's an example: https://github.com/pulumi/examples/blob/947273e7a62cf31649559344b2dd8df78bddacd9/gcp-go-gke/main.go#L50 • set it as a stack configuration and then create a stack per env