Getting error when i try to build image by trigger in kubernetes gcp

82 views Asked by At

ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=403, message=Required "container.clusters.get" permission(s) for "projects/digidoc-uat/locations/asia-south1/clusters/digidocuatfe".

1

There are 1 answers

6
opera127 On

The two required steps are:

  1. gcloud auth login
  2. Setting up authentication for docker, as described here

gcloud auth configure docker asia-south1-docker.pkg.dev.

The exact command for your repo can also be seen by logging in to the Google Cloud console, entering the repo and clicking on SETUP INSTRUCTIONS enter image description here