Here you'll learn how to use OpenShift to build and deploy apps.
OpenShift incorporates several upstream projects (Kubernetes, Docker/CRI-O, HAProxy, Open vSwitch, etc.) while also providing additional features and functionality to make those upstream projects easier to consume.
No matter if you're a developer or an operator, you've got the following options to communicate with OpenShift:
- Command Line Interface (CLI) … is called the
octool, written in Go, and a super-set of
- Web Console … OpenShift also provides a feature rich Web console that provides a friendly graphical interface for interacting with the platform.
- HTTP API … both the CLI and the Web console communicate with OpenShift via the same method, the HTTP API.
Well done, you've deployed an app consisting of two microservices, using different strategies and also made it publicly available!
Congratulations, you're a Jedi Master of containers with a full seat on the Jedi council now. May the Kube be with you!
If you want to try out even more Kubernetes and OpenShift, head over to https://learn.openshift.com/, which has scenarios from storage to monitoring and even around the service mesh Istio.
Exploring the OpenShift CLI
The CLI exposes the underlying Kubernetes orchestration system with the enhancements made by OpenShift. Users familiar with Kubernetes will be able to adapt to OpenShift quickly.
Let's get started by logging into OpenShift. Do the following:
oc login [[HOST_SUBDOMAIN]]-8443-[[KATACODA_HOST]].environments.katacoda.com --insecure-skip-tls-verify=true
When prompted, enter the following username and password:
Next, you can check if it was successful:
Should return a response of:
In the next step, we'll get started with creating your first project using the Web console.