Comment 8 for bug 2007575

Revision history for this message
Alex Lutay (taurus) wrote :

Ian, I am happy to troubleshoot this with you together, as it is still topical:

> juju add-k8s gke
ERROR making juju admin credentials in cluster: ensuring cluster role "juju-credential-1234567" in namespace "kube-system": Get "https://x.x.x.x/apis/rbac.authorization.k8s.io/v1/clusterroles/juju-credential-1234567": 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/kubernetes-engine/docs/how-to/cluster-access-for-kubectl#install_plugin

I believe it is not related to AutoPilot.
My steps to reproduce are here: https://charmhub.io/postgresql-k8s/docs/h-deploy-gke