Comment 1 for bug 2007848

Revision history for this message
Bartlomiej Gmerek (gmerold) wrote :

I also have similar problem when using GKE:

ubuntu@ip-172-31-21-174:~$ juju add-k8s gke-orc8r
ERROR making juju admin credentials in cluster: ensuring cluster role "juju-credential-d562600d" in namespace "kube-system": Get "https://34.116.186.150/apis/rbac.authorization.k8s.io/v1/clusterroles/juju-credential-d562600d": getting credentials: exec: executable gke-gcloud-auth-plugin not found

It looks like you are trying to use a client-go credential plugin that is not installed.

To learn more about this feature, consult the documentation available at:
      https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins

Install gke-gcloud-auth-plugin for use with kubectl by following https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke

And yet:

ubuntu@ip-172-31-21-174:~$ which gke-gcloud-auth-plugin
/home/ubuntu/google-cloud-sdk/bin/gke-gcloud-auth-plugin

BR,
Bartek