Set up a free OpenShift home lab
Before any of the other guides are useful, you need a cluster you can break
safely. OpenShift Local (formerly CodeReady Containers, still called crc
on the command line) runs a single-node OpenShift cluster on your own machine —
free, disposable, and perfect for learning.
What you’ll need
Section titled “What you’ll need”- A machine with at least 4 physical CPU cores, 16 GB RAM, and 35 GB free disk.
- A free Red Hat account (for the pull secret).
- Admin rights to install a local hypervisor.
Install and start
Section titled “Install and start”-
Download OpenShift Local and grab your pull secret from console.redhat.com/openshift/create/local.
-
Run the one-time setup, which prepares the hypervisor and system bundle:
Terminal window crc setup -
Set a couple of sensible resource limits before the first start, so they apply on the initial boot:
Terminal window crc config set cpus 6crc config set memory 16384 -
Start the cluster. You’ll be prompted for the pull secret on the first run:
Terminal window crc start
Log in
Section titled “Log in”Once crc start finishes, it prints the login details. You can retrieve them
again at any time:
crc console --credentialsThat prints ready-to-paste oc login commands for both the developer and
kubeadmin users. To open the web console in your browser:
crc consoleoc whoami --show-console# https://console-openshift-console.apps-crc.testingoc whoami --show-server# https://api.crc.testing:6443cat ~/.crc/machines/crc/kubeadmin-passwordEveryday commands
Section titled “Everyday commands”crc status # is the cluster up, and how much resource is it using?crc stop # shut it down cleanly (keeps state)crc delete # tear it down completely for a fresh startWith a working cluster, the natural next step is understanding why your first real workload might refuse to start — which almost always comes down to Security Context Constraints. That’s the next guide.