I wanted to create an image stream for my image (which is pulled from a private registry). So I also need a secret.
oc secrets new-dockercfg mysecret --docker-server=ec2xxx:5000 --docker-username=myuser --docker-password=mypass [email protected] oc import-image --insecure ec2xxx:5000/proj/image:23 --confirm The image stream isn't created correctly: lastTransitionTime: 2016-03-01T09:23:04Z message: you may not have access to the Docker image "ec2-52-58-3-178.eu-central-1.compute.amazonaws.com:5000/dbm/ponds-ui-nodejs:83" reason: Unauthorized status: "False" Probably because I have to link the secret to my image stream? How can I perform this? From: [email protected] Date: Thu, 25 Feb 2016 16:31:13 -0500 Subject: Re: How to distribute an image in OpenShift cluster To: [email protected] CC: [email protected] On Feb 24, 2016, at 7:03 AM, Lorenz Vanthillo <[email protected]> wrote: I've a big OpenShift Origin 1.1 cluster with many nodes. Now I've pulled an image from an insecure registry (self-signed certificates) on one of the nodes. I can perform the oc new-app command to start the image and the application. The problem appears when I try to scale. The scaling itself is going fine but the new containers are all on the same node from where I've pulled the image. I thought the problem was the following: I'm creating a new app from an existing docker image. So because there is no s2i-build it's not necessary to build a new image and more important: it's not necessary to push this image into the OpenShift registry. So other nodes aren't able to pull the image when I try to scale because it's not in the registry. It's only locally on one of my nodes. How is it possible to solve this problem? I tried to push my image into the openshift registry manually. This was possible but after scaling the container is still recreated on that same node where the image already is. I was reading about image streams but I don't know if that will solve my problem. When I will try to create an image stream on my image, will the image stream be known over the whole cluster-environment? Deployment configs point to images to run. If the nodes have access to that image already, you won't need to do anything except reference it in the DC pod template. If you want to control how the image is rolled out, you create an image stream and then have your DCs point to that image stream, then you can tag a new image in to the stream and rollouts will be triggered. _______________________________________________ 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
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
