Have a look at [1] which should explain how to connect the IS with the secret. Additionally, there's [2] which explains problems when auth is delegated to a different uri.
Maciej [1] https://docs.openshift.org/latest/dev_guide/managing_images.html#private-registries [2] https://github.com/openshift/origin/issues/9584 On Wed, Jan 3, 2018 at 10:34 AM, Alan Christie < [email protected]> wrote: > Hi all, > > I’m successfully using a DeploymentConfig (DC) and an ImagePullSecret > (IPS) templates with OpenShift Origin v3.6 to spin-up my application from a > container image hosted on a private GitLab registry. But I want the > deployment to re-deploy when the GitLab image changes and to do this I > believe I need to employ an ImageStream. > > I’m, comfortable with each of these objects and have successfully used > ImageStreams and DCs with public DockerHub images (that was easy because > there are so many examples). But I’m stuck trying to pull an image using an > ImageStream from a private GitLab-hosted docker registry. > > The IPS seems to belong to the DC, so how do I get my ImageStream to use > it? My initial attempts have not been successful. All I get, after a number > of attempts at this, is the following error on the ImageScreen console... > > Internal error occurred: Get https://registry.gitlab.com/ > v2/myproject/myimage/manifests/latest: denied: access forbidden. > Timestamp: 2017-12-28T14:27:12Z Error count: 2. > > Where “myproject” and “myimage” are my GitLab project and image names. > > My working DC/IPS combo looks something like this… > > […] > imagePullSecrets: > - name: gitlab-myproject > containers: > - image: registry.gitlab.com/myproject/myimage:stable > name: myimage > […] > > But what would my DC/IPS/ImageStream objects look like? > > Thanks in advance. > > Alan Christie. > > > _______________________________________________ > users mailing list > [email protected] > http://lists.openshift.redhat.com/openshiftmm/listinfo/users >
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
