Getting Started with OpenShift
I’m going to show the basics of how to manage an OpenShift cluster using the command-line tool,
Download the tool
linux-aarch64 in the following command with your architecture:
wget https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/windows/oc.zip -o oc.zip
Unpack and place in your PATH. To check your PATH on Linux or macOS, open the Terminal and run:
Windows users, extract with
7z x oc.zip and move
oc.exe to your Desktop
Sign up for OpenShift Online Starter at https://manage.openshift.com. Click on your user profile name at the top right, then “Copy Login Command”. Paste this login command in your shell.
Start new project and app
Source app taken from Red Hat’s Getting Started with Python blogpost.
oc new-project sample-flask-app oc new-app https://github.com/worldofgeese/os-sample-python.git --name=sample-flask-app
The tool will inspect the source code, locate an appropriate image that can build the source code, create an image stream for the new application image that will be built, then create the correct build configuration, deployment configuration and service definition.