Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+

Hello I am receiving this error when trying to use the gcp auth plugin for a GKE Autopilot cluster. Is there a way to fix this error or will this appear every time I use kubectl? I am currently using kubectl 1.24. 

 

➜  autopilot git:(main) kubectl get ns
W0809 11:15:28.632876   96209 gcp.go:120] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
To learn more, consult https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
NAME              STATUS   AGE
default           Active   12h
kube-node-lease   Active   12h
kube-public       Active   12h
kube-system       Active   12h

 

 

0 1 5,502
1 REPLY 1

If you follow the link posted on that warning message, https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke you'll notice that the legacy auth plugin will be soon(ish) deprecated and you'll have to install the new one, there are quite well explained steps there about this.

 

Top Labels in this Space
Top Solution Authors