Automated creation of a Red Hat OpenShift cluster on IBM Cloud using the existing CLIs and plugins

This blog post is about automating the creation of a Red Hat OpenShift cluster on IBM Cloud in a Virtual Private Cloud. I used bash scripting with the IBM Cloud CLI and and the associated IBM Cloud CLI plugins vpc-infrastructure and kubernetes-service. I also use jq to handle json output.

I created the bash automation in combination of the IBM Cloud documentation and tutorials and my blog post about the automated setup of a simple Virtual Private Cloud.  It’s more about learning and not so much for production.

These are the three resources I used in the IBM Cloud documentation:

I’m not going to show every function of the bash script in this blog post. For details, please visit the script in the GitHub project.

Continue reading

Create an edge route for an example application on a Red Hat OpenShift Cluster on IBM Cloud

This blog post is about an example usage of the awesome tutorial made by Masa Abushamleh at IBM Developer called Secure routes for your microservices on Red Hat OpenShift. I applied the content, with some small modifications, to my existing example application. It’s the same application I used in this blog post Using the internal OpenShift container registry to deploy an application.

Continue reading

Using the internal OpenShift container registry to deploy an application

This cheat sheet is an extension to a blog post I made which is called: Configure a project in an IBM Cloud Red Hat OpenShift cluster to access the IBM Cloud Container Registry . In that related blog post we used the IBM Cloud Container registry to get the container images to run our example application. Now in this cheat sheet we will use the Red Hat OpenShift internal container registry and the Docker build strategy to deploy the same example application to OpenShift.

Continue reading

Deploy a simple app using the OpenShift CLI

That blog post is a simple cheat sheet, how to deploy a containerized application to OpenShift. We using an existing container image on a public Quay Repository and the OpenShift CLI. This blog post is also a combination of existing blog posts to compare the automated created specifications to the predefined specifications in the blog post Configure a project in an IBM Cloud Red Hat OpenShift cluster to access the IBM Cloud Container Registry and use the login written in the blog post Log in to the an IBM Cloud Red Hat OpenShift cluster using the IBM Cloud and OpenShift CLI.

Continue reading

Using a Red Hat OpenShift cluster on IBM Cloud some basic thoughts

This blog post is about some basic thoughts when you going to use a Red Hat OpenShift cluster as a service on IBM Cloud or on any other cloud provider.

When you run a Red Hat OpenShift cluster as a service on IBM Cloud, you should get a basic understanding of the shared responsibilities for that service offering on IBM Cloud or for any other cloud provider.

Continue reading

Configure a project in an IBM Cloud Red Hat OpenShift cluster to access the IBM Cloud Container Registry

This cheat sheet is about, how to configure a project in an IBM Cloud Red Hat OpenShift to access the IBM Cloud Container Registry. We use an image pull secret to access container images from IBM Cloud Container Registries. The cheat sheet combines different steps, which are available in the IBM Cloud documentation you find here.

We configure a created project in OpenShift to access two different IBM Cloud Container Registries.

The IBM Cloud Red Hat OpenShift cluster is a part of IBM Cloud Account ONE.

The image below shows a simplified architecture overview:

Note: The cheat sheet references to source code, which is available in that example GitHub project. In case you want to follow the steps, you can clone the GitHub project to your local computer.

Continue reading

Automated setup of an IBM Cloud App ID instance using a Bash script

This blog post contains some of the implementation details of an example Bash script to automate the setup for an IBM Cloud App ID service instance. For details, visit this GitHub project.

What is App ID?

“IBM Cloud App ID allows you to easily add authentication to web and mobile apps. You no longer have to worry about setting up infrastructure for identity, ensuring geo-availability, and confirming compliance regulations. Instead, you can enhance your apps with advanced security capabilities like multifactor authentication and single sign-on.” Resource from the IBM Cloud App ID website (2021/10/06). For more details please visit the website.

The Bash script utilises following APIs and CLIs:

The script creates one instance of the IBM Cloud App ID service and does the configuration.

This automation example uses the IBM Cloud Shell and a PayAsYouGo IBM Cloud Account, but for the App ID service instance we will use the lite plan which is for free.

Please see the official documentation for each IBM Cloud Service and IBM Cloud Account type definition, before you start.

Continue reading