https://pulumi.com logo
#kubernetes
Title
# kubernetes
m

many-pencil-40333

08/03/2023, 2:25 PM
it looks like the k8s provider requires
gke-gcloud-auth-plugin
to be in your
PATH
when working with
gke
.
gcloud
, however installs this binary in a non-standard location as it's generally the only consumer of the plugin. Is there an alternative way to tell the provider where to find the plugin? I'd rather not add the
gcloud
plugins folder to my path or have to prefix pulumi commands with the location. Is this documented anywhere?
f

full-eve-52536

08/03/2023, 2:33 PM
What if you install the
google-cloud-sdk-gke-gcloud-auth-plugin
package using your package manager instead? In our case, we create a
pulumi
docker image with all the binaries required to run
pulumi
commands, so we end up doing:
Copy code
RUN apt-get install -y google-cloud-sdk-gke-gcloud-auth-plugin
And that's all we usually need. We don't add it to our
PATH
.
I'm sure there is a way to do what you are asking, though. In our
kubeconfig
file (which we supply to our provider), there is a
command:
directive:
m

many-pencil-40333

08/03/2023, 3:09 PM
got ya. helpful. ty!