Getting started with CRC

From MyWiki
Revision as of 11:50, 15 February 2024 by George2 (Talk | contribs)

Jump to: navigation, search

Prerequisites: you need to have a platform with working virtulisation eg KVM.
Reference: https://www.redhat.com/sysadmin/codeready-containers
Reference: https://www.okd.io/ (The OKD version)

Red Hat CodeReady Containers (CRC) provides a minimal, preconfigured OpenShift 4 cluster on a laptop or desktop machine for development and testing purposes. CRC is delivered as a platform inside of the VM.

"crc" is a binary file which is run like ./crc By default the "crc" downloaded from Red Hat is configured to require a "pull-secret". We can configure it to nor require this by switching it to the OKD version as follows:
./crc config view to view the most important settings
./crc config set preset okd (switch to OKD version)
./crc config set consent-telemetry no (stop telemetry)

./crc --help (to see help) eg
./crc config --help

The first step is to run "./crc setup"
     In my case we get the following error:
    INFO Checking minimum RAM requirements
    crc requires at least 9.664GB to run
This was on a Red Hat virtual machine with only 8G of RAM

The above was an attempt with a Linux system, looks like we will have to try WSL2 on Windows as, for me, that system has a lot more memory, lets see how it goes.
Cancel that, I've managed to add virtual memory to the ESXi Red Hat vm so we can have another go
Well, now I need to add space to the disk - "no space left on device"
Red hat expand disk.png
Now we can try again, this time everything works
View The output from "crc setup"
View the output from "crc start" It failed to start
It