CRC Setup

CodeReady Containers is a solution from Red Hat, which provides a minimal and preconfigured OpenShift 4
cluster on a notebook or desktop machine for development and testing purposes. It gets delivered as a Red
Hat CoreOS (RHEL) based virtual machine, this is what has to be done to get Red Hat CodeReady Containers
installed and running.
 
 
General requirements : CentOS / RHEL >= 7.5/8.0 | Download -> pull-secret | Red Hat account
Physical requirements : 4 virtual CPUs (vCPUs) | 9 GB memory (RAM) | 35 GB of storage space

Run these commands :

$ mkdir /home/<user>/crc
$ wget https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz
$ tar -xvf crc-linux-amd64.tar.xz

$ mv /home/<user>/crc-linux-<version>-amd64/* /home/<user>/crc
$ rm /home/<user>/crc-linux-amd64.tar.xz
$ rm -r /home/<user>/crc-linux-<version>-amd64

$ cd /home/<user>/crc
$ chmod +x crc
$ export PATH=$PATH:/home/<user>/crc

To set up and start the cluster - execute :

$ crc setup
$ crc start -p /<path-to-the-pull-secret-file>/pull-secret.txt

To set up the OC environment - execute :

$ crc oc-env
$ eval $(crc oc-env)

To login as the developer user - execute :

$ oc login -u developer -p developer https://api.crc.testing:6443
$ oc logout

To login as the platform admin - execute :

$ oc login -u kubeadmin -p <password> https://api.crc.testing:6443
$ oc logout

To start the graphical web console - execute : $ crc console
To display the status of the cluster - execute : $ crc status
To shutdown the OpenShift cluster - execute : $ crc stop

Red Hat additionally provides odo (OpenShift Do), a CLI tool for developers, to manage application
components on the OpenShift Container Platform. To use odo - execute the following commands :

$ wget https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-amd64.tar.gz
$ tar -xvf odo-linux-amd64.tar.gz

$ mv /home/<user>/odo /home/<user>/crc
$ rm odo-linux-amd64.tar.gz

$ cd /home/<user>/crc
$ chmod +x odo

CRC Getting Started Guide and Release Notes :

About Me

I am using Red Hat based IT products - they provide absolute reliability, maximum
security, proper performance and also grant access to a huge amount of software.

I am running the latest editions of CentOS, Fedora, and Red Hat Enterprise Linux
server and workstation operating systems on physical and virtual machines (VM).

My dedicated capabilities and interests are : backup solutions & disaster recovery,
hardware drivers, infrastructure deployment, storage management, virtualization

Disclaimer

The content of the site is monitored continuously. If unintentionally rights of organizations, persons
or things will be violated, I ask for information, so that this deficiency can be corrected immediately.

All Red Hat images, logos and trademarks displayed on this website are the property of Red Hat, Inc.
I assume no liability for external links, the owners of those websites are responsible for the content.