Skip to content

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.

Watch on YouTube ↗
  • 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.
  1. Download OpenShift Local and grab your pull secret from console.redhat.com/openshift/create/local.

  2. Run the one-time setup, which prepares the hypervisor and system bundle:

    Terminal window
    crc setup
  3. Set a couple of sensible resource limits before the first start, so they apply on the initial boot:

    Terminal window
    crc config set cpus 6
    crc config set memory 16384
  4. Start the cluster. You’ll be prompted for the pull secret on the first run:

    Terminal window
    crc start

Once crc start finishes, it prints the login details. You can retrieve them again at any time:

Terminal window
crc console --credentials

That prints ready-to-paste oc login commands for both the developer and kubeadmin users. To open the web console in your browser:

Terminal window
crc console
Terminal window
oc whoami --show-console
# https://console-openshift-console.apps-crc.testing
Terminal window
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 start

With 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.