Coder Social home page Coder Social logo

Comments (6)

dekkagaijin avatar dekkagaijin commented on May 29, 2024 1

Ah, yeah, the Homebrew package is an unsupported community effort.

I'd try removing the brew version and using the supported installation: https://cloud.google.com/sdk/docs/quickstart-macos

from docker-credential-gcr.

dekkagaijin avatar dekkagaijin commented on May 29, 2024

Did you install gcloud in the same session? You might have to restart your terminal before gcloud's component bin directory gets included on your system PATH

from docker-credential-gcr.

steveoh avatar steveoh commented on May 29, 2024

I installed gcloud with brew and then tried to install this cli. Restarted session etc and its still not on path.

from docker-credential-gcr.

steveoh avatar steveoh commented on May 29, 2024

thanks! That worked.

Edited

I'll open an issue in the brew repo since that was the problem. Or how the gcloud cli installed the docker-credential-gcr after the brew install.

I can open a new issue but I'm now confused. I have a few #images in the gcr.

I ran docker-credential-gcr configure-docker, docker-credential-gcr gcr-login

I then deleted my k8s deployment and recreated it. But I get permission issues (ImagePullBackOff).

unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication

This puts me back where I started.

The pods started ok when the gcr was public but we want to keep it private. Are there some specific steps I'm missing or permissions I need to add to allow k8s to pull on my behalf?

I am logged into gcloud. I have our specific project set.

from docker-credential-gcr.

dekkagaijin avatar dekkagaijin commented on May 29, 2024

Are you using GKE? If so, you'll need to make sure that the nodes' service account has the Storage Object Viewer role in the project where your images are hosted, and that its configured with Storage reader scopes when the cluster is created (both the service account and the scopes can be seen in the advanced options during cluster creation in the cloud console).

Otherwise, you'll have to give your cluster ImagePullSecrets: http://docs.heptio.com/content/private-registries/pr-gcr.html

from docker-credential-gcr.

steveoh avatar steveoh commented on May 29, 2024

thanks the second option in that doc worked great!

from docker-credential-gcr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.