From the course: Learning OpenShift

Red Hat OpenShift Local - OpenShift Tutorial

From the course: Learning OpenShift

Red Hat OpenShift Local

- [Instructor] Learning OpenShift is much better with a cluster. Red Hat OpenShift Local is a simple way to test OpenShift on your own computer. Red Hat OpenShift Local, formerly known as CodeReady Containers or CRC, is a self-contained application available for computers running Windows, Mac, and Linux. Developers can download and run OpenShift Local and access various features in a minimalistic environment geared for developers and testers. OpenShift Local is not prepared for production use, instead using the current workstation as both control plane and worker node. Among various optimizations, OpenShift Local runs by default with disabled monitoring features which can be enabled if needed. OpenShift Local requires the following minimum operating system configurations: Windows 10 Fall Creators Update, version 1709 or later, macOS 11 Big Sur or later, Red Hat Enterprise Linux, Fedora, or CentOS 8 or later. These requirements are valid as of the publication of this video and may change over time. We recommend you to check the official Red Hat OpenShift Local documentation for an updated list of requirements at crc.dev/crc. Regarding Linux, OpenShift Local is officially only supported in Red Hat Enterprise Linux, Fedora, or CentOS. However, OpenShift Local can run on other distributions, such as Ubuntu or Debian, with minor caveats even if Red Hat does not officially support them. Running OpenShift Local on any Linux distribution requires a few additional software packages to be installed through your default package manager. The documentation at crc.dev/crc has additional information about this subject. In terms of hardware, OpenShift Local has some strict requirements. Your system must use a recent Intel CPU except for Macs where Apple silicon machines are supported with at least four physical cores and have at least 16 gigabytes of RAM. Be aware that the base installation of OpenShift Local requires at least nine gigabytes for you to start. Of course, to run other applications on OpenShift Local, you will need more RAM, so using your computer with at least 32 gigabytes of RAM is strongly recommended. OpenShift Local also requires at least 35 gigabytes of free disk space for its installation. These requirements are likely to change in the future, so please check the documentation at crc.dev for more up-to-date documentation. To install OpenShift Local, open your web browser and navigate to console.redhat.com/openshift/create/local. Download the latest release of OpenShift Local and the pull secret file. This file contains a key identifying your copy of OpenShift Local to your Red Hat developer account. On the terminal, unzip the file containing the OpenShift Local executable using the unxz and tar commands. Then copy or move the crc executable into your path. Run the command crc setup. This command will prepare your copy of OpenShift Local, verifying requirements, and setting the required configuration values. Once the crc setup command is ready, launch crc start. Running crc start can take a long time, around 20 minutes on a recent PC. Once started, use the provided credentials to access the OpenShift web console. OpenShift Local uses the developer username and password to log in as low-privileged user while the kubeadmin user uses a random-generated password. Use the crc console credentials command to find the credentials required to log in as the kubeadmin user at any time. OpenShift Local works as a standard OpenShift cluster, allowing users to deploy applications and to configure and trigger CI/CD pipelines. OpenShift Local can take a long time to start. For that reason, you should run crc stop to freeze the current, the cluster in its current state to resume operations later. On the other hand, the command crc delete completely removes the OpenShift Local cluster from the workstation. OpenShift Local is a simple and effective way to discover OpenShift on your personal computer system. It is available for Windows, Mac, and Linux users, but it has strict software and hardware requirements.

Contents