Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but wonโ€™t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

OpenShift Install & Configurations using OpenShift Local in windows laptops/desktops

Below is the 100% correct and updated step-by-step guide to install and configure OpenShift Local (aka CRC) on Windows 10/11 laptops or desktops using the correct crc commands.


โœ… Overview: What You’re Installing

ComponentDescription
OpenShift LocalOfficial local dev tool to run OpenShift 4.x
CRC CLI ToolStill named crc.exe (not openshift-local)
RunsA single-node OpenShift cluster using Hyper-V

๐Ÿงฉ Prerequisites

RequirementValue / Notes
OSWindows 10/11 (64-bit)
RAMMin 9 GB (Recommended: 16 GB)
CPUMin 4 cores
DiskAt least 35 GB free
VirtualizationMust be enabled in BIOS
HypervisorHyper-V (enabled)

๐Ÿ› ๏ธ Step-by-Step Guide

๐Ÿ”น Step 1: Enable Hyper-V & Virtualization

Open PowerShell as Administrator and run:

dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All /NoRestart

Then restart your system.


๐Ÿ”น Step 2: Download OpenShift Local & Pull Secret

  1. Visit: https://console.redhat.com/openshift/create/local
  2. Log in or create a free Red Hat account.
  3. Download the Windows installer (e.g., crc-windows-installer.exe).
  4. Also download your Pull Secret and save it as pull-secret.txt.

๐Ÿ”น Step 3: Install OpenShift Local (CRC)

  1. Run the downloaded .exe file (e.g., crc-windows-installer.exe).
  2. It installs the crc CLI and adds it to your system PATH.
  3. Open Command Prompt or PowerShell, and verify:
crc version

๐Ÿ”น Step 4: Setup the Cluster

In PowerShell or Command Prompt, run:

crc setup --pull-secret C:\path\to\pull-secret.txt

Replace the path with the full path to your pull-secret.txt file.


๐Ÿ”น Step 5: Start the Cluster

crc start
  • This will launch a single-node OpenShift 4 cluster inside a Hyper-V VM.
  • It may take 5โ€“10 minutes to complete.

๐Ÿ”น Step 6: Access OpenShift Web Console

After the cluster starts, you’ll see output like:

Started the OpenShift cluster.

Console URL: https://console-openshift-console.apps-crc.testing

Login Credentials:

RoleUsernamePassword
Adminkubeadmin(shown in terminal)
Developerdeveloperdeveloper

Open the web console in your browser and use these credentials.


๐Ÿ”น Step 7: Access via CLI (Optional)

To set up oc (OpenShift CLI), run:

crc oc-env

Then copy and paste the output into your shell to make oc available.

Log in:

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

๐Ÿ” Optional Cluster Management

ActionCommand
Stop clustercrc stop
Delete clustercrc delete
Status checkcrc status

๐Ÿงน Uninstall (if needed)

To uninstall CRC:

  • Go to Control Panel โ†’ Programs โ†’ Uninstall a Program โ†’ Remove CodeReady Containers.

โš ๏ธ Common Issues

ProblemSolution
Hyper-V not foundEnsure virtualization is enabled in BIOS
CRC command not foundReboot or check if the PATH was updated after install
Slow startupClose heavy apps, ensure enough RAM/CPU are free
DNS resolution failsDisable VPNs; CRC uses crc.testing local domain

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x