Sunday, 26 October 2025

Install OpenShift Locally: Single-Node Cluster Setup with CodeReady Containers (CRC)

Our course you can check :-   Udemy course 


Here’s a step-by-step guide to install a single-node OpenShift cluster using CodeReady Containers (CRC) on your local machine:


🧰 Prerequisites

  • Red Hat account (free at developers.redhat.com)
  • Pull secret from cloud.redhat.com
  • System requirements:
    • 4 vCPUs
    • 8–9 GB RAM
    • 35–40 GB disk space
    • VT-x/AMD-v enabled in BIOS
    • Supported OS: Linux (RHEL, Fedora, CentOS), Windows 10, macOS (Intel only)

🖥️ Installation Steps

Step 1: Download CRC

Visit the CRC download page and download the appropriate binary for your OS.

Step 2: Extract and Install CRC

For Linux:

tar -xvf crc-linux-amd64.tar.xz
sudo mv crc-linux-*/crc /usr/local/bin/


For Windows/macOS:
  • Run the installer .msi or .pkg file.
  • Restart your system if prompted.

Step 3: Setup CRC

crc setup

This command prepares your system and downloads the required VM bundle.

Step 4: Start the Cluster

crc start -p /path/to/pull-secret.txt

Replace /path/to/pull-secret.txt with the actual path to your downloaded pull secret.

Step 5: Access the Cluster

  • Web Console: Run crc console to get the URL.
  • CLI Access:
crc oc-env
eval $(crc oc-env)
oc login -u developer -p developer

You’ll also get kubeadmin credentials during crc start for admin access.


Conclusion:-

Want to run OpenShift on your laptop without the complexity of a full cluster? This course shows you how to install a single-node OpenShift cluster using CodeReady Containers (CRC)—perfect for developers, DevOps engineers, and SREs who want a local OpenShift environment for testing and learning.

In this hands-on course, you'll learn:

  • How to download and install CRC on Linux, Windows, or macOS
  • How to configure your system and start the OpenShift cluster
  • How to use the oc CLI and OpenShift web console
  • How to deploy sample applications locally
  • How to troubleshoot common CRC issues

By the end of this course, you'll have a fully functional OpenShift cluster running on your machine—ideal for development, experimentation, and learning OpenShift fundamentals.

No comments:

Post a Comment