https://pulumi.com logo
Title
c

chilly-garage-80867

03/20/2023, 11:19 PM
Deploying GKE on GCP, anyone get this when trying to push .yaml files
Error: invocation of kubernetes:yaml:decode returned an error: failed to initialize discovery client: The gcp auth plugin has been removed.
    Please use the "gke-gcloud-auth-plugin" kubectl/client-go credential plugin instead.
    See <https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke> for further details
m

many-knife-65312

03/21/2023, 5:28 AM
I think this is the documented approach: https://www.pulumi.com/registry/packages/gcp/service-account/
we use a custom container that has the gcp CLI and gke-gcloud-auth-plugin installed on it
and generate a kubeconfig file that is used by the stack
the kubeconfig file has the format that is required for gke-cloud-auth-plugin
c

chilly-garage-80867

03/21/2023, 4:02 PM
let me give that a look. Thanks!