OpenShift is a rock solid platform engineered for the enterprise. It's built on top of Kubernetes and provides many value add features, tools, and services which help to streamline the complete end-to-end container development and deployment lifecycle.
This introductory level training course is designed to bring you quickly up to speed with the key features that OpenShift provides. You'll then get to observe first hand how to launch a new OpenShift Container Platform 4.2 cluster on AWS and then deploy a real world cloud native application into it.
We’d love to get your feedback on this course, so please give it a rating when you’re finished. If you have any queries or suggestions, please contact us at support@cloudacademy.com.
Learning Objectives
By completing this course, you will:
- Learn and understand what OpenShift is and what it brings to the table
- Learn and understand how to provision a brand new OpenShift 4.2 cluster on AWS
- Learn and understand the basic principles of deploying a cloud native application into OpenShift
- Understand how to work with and configure many of the key OpenShift value add cluster resources
- Learn how to work with the OpenShift web administration console to manage and administer OpenShift deployments
- Learn how to work with the oc command line tool to manage and administer OpenShift deployments
- And finally, you’ll learn how to manage deployments and OpenShift resources through their full lifecycle
Intended Audience
This course is intended for:
- Anyone interested in learning OpenShift
- Software Developers interested in OpenShift containerisation, orchestration, and scheduling
- DevOps practitioners looking to learn how to provision and manage and maintain applications on OpenShift
Prerequisites
To get the most from this course, you should have at least:
- A basic understanding of containers and containerisation
- A basic understanding of Kubernetes - and container orchestration and scheduling
- A basic understanding of software development and the software development life cycle
- A basic understanding of networks and networking
Source Code
This course references the following CloudAcademy GitHub hosted repos:
- https://github.com/cloudacademy/openshift-voteapp-demo (OpenShift VoteApp Runbook)
- https://github.com/cloudacademy/openshift-s2i-frontendbuilder (OpenShift S2I Frontend Builder)
- https://github.com/cloudacademy/openshift-voteapp-frontend-react (VoteApp Frontend UI)
- [Jeremy] Okay welcome back. In this demo I'm going to show you how to download, setup, and authenticate to the OpenShift cluster using the OC command line utility. The OC command line utility is the main tool you will use within the terminal. It closely models the kubectl command for those already familiar with Kubernetes. In fact, the OC tool can do everything and more that Cube CTL does using an almost identical pattern of sub commands and parameters, et cetera.
I'm going to jump back into step six of the run sheet and copy the commands to download the OC utility. Let's copy these commands and then swap over into the terminal. This will download, extract, and move the OC utility such that we can pull it up regardless of where we are on the file system. Excellent, that has worked as expected. Next let's simply execute the OC command like so. Here we can see the documentation regarding all of the sub commands that can be used when using the OC command. Next, let's run OC version to examine the version information like so.
Okay, so here we can see that we are indeed running this particular version. At this stage we're almost ready to connect to our cluster, but before we can, we need to set and establish the cube config environment variable, within the current terminal session. This is a pointer to the cube config file which contains the connection information used by the OC command to connect and authenticate to the OpenShift cluster. Let's jump into the run book and copy the step seven export command like so. Back within the terminal we simply paste the command. Now that this has been set we should have everything in place and be able to connect to our new cluster.
Let's attempt to do so. I'll go back to the run sheet and copy the oc whoami command. Back within the terminal I'll paste and execute it. And this time we can see that we have indeed successfully connected and authenticated as the system admin user. Let's now run the remainder oci whoami commands to display the context and cluster that we are operating against. Looks good. Finally, I'll run the command oc getnodes to query the node makeup for the cluster. Here we can see that our cluster consists of three master nodes and one worker node. And they are all in ready status. This is a great result and allows us to continue on.
Okay, that completes steps six and seven. In the next demo I'll show you how to configure an alternative authentication mechanism and replace the temporary Cube admin credential.
Jeremy is a Content Lead Architect and DevOps SME here at Cloud Academy where he specializes in developing DevOps technical training documentation.
He has a strong background in software engineering, and has been coding with various languages, frameworks, and systems for the past 25+ years. In recent times, Jeremy has been focused on DevOps, Cloud (AWS, Azure, GCP), Security, Kubernetes, and Machine Learning.
Jeremy holds professional certifications for AWS, Azure, GCP, Terraform, Kubernetes (CKA, CKAD, CKS).