Build pod fails to finish with the error "Get "https://image-registry.openshift-image-registry.svc:5000/v2/": Forbidden"

Solution Verified - Updated -

Issue

  • After a build is started, the process builds the application, but the pod is unable to push the resultant image to the internal image registry and the build process ends with Error status.
  • A problem related to pull secret privileges has been ruled out and the related service account has enough privileges to push images to the internal registry.
  • The error the build pod shows is Forbidden, but this error is not seen in the image registry pod.

Environment

  • Openshift Container Platform 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content