Step 4: Deploy to Red Hat OpenShift
Last updated
Was this helpful?
Last updated
Was this helpful?
This is a quick lab that demonstrates how to deploy a public image from Docker Hub on OpenShift. As example image the 'authors' microservice from this workshop is used.
Open the Red Hat OpenShift Console from the IBM Cloud OpenShift dashboard:
Your OpenShift Container Platform Dashboard will open in a new window.
Once you've launched your dashboard, on the left hand side, under Home, select Projects:
Next, click Create Project:
We'll call our project workshop because we are very imaginative, but you can choose any name you wish. Click Create:
Now, we see our empty Project Details page:
Now that our project is created, let's upload an image.
First, let's change to the Developer Perspective. On the left hand side, pull down the Administrator dropdown menu and select Developer:
You'll notice from the Project: dropdown menu at the top of the screen that we are in the workshop project that we just created in the Administrator Perspective. Click on Container Image:
Click the blue magnifying glass to the right of the image name and Red Hat OpenShift will give you more information about the image you're about to deploy:
Finally, scroll to the bottom and click Create.
After a few seconds, you'll see a new icon populating in your dashboard:
Click the Open URL icon in order to hit your deployed image's endpoint:
A new browser window should pop up displaying the message:
If you can see this, congratulations! You've successfully deployed an image from Docker Hub and executed it from an endpoint on your own private Red Hat OpenShift cluster.
You may want to repeat these steps with another image from Docker Hub, or an image of your own creation!
Note: Not all images from Docker Hub can be installed. For example OpenShift doesn't allow to deploy images which run under 'root'. See the OpenShift for details.
Although many times you would deploy from a private registry, we will just take a container image that we've found on Docker Hub called :