Here is the step-by-step guide to correctly install and configure OpenShift Local (CRC) on macOS laptops or desktops for local OpenShift 4.x development.
π OpenShift Local on macOS β Overview
Feature | Description |
---|---|
Tool Name | OpenShift Local (CLI tool: crc ) |
Runs | Single-node OpenShift 4.x cluster |
Virtualization | Uses Appleβs Hypervisor.framework (no VirtualBox required) |
Use Case | Ideal for local development, testing OpenShift apps, and CLI practice |
β System Requirements
Requirement | Minimum (Recommended) |
---|---|
OS | macOS Monterey (12.x) or later |
CPU | 4 cores |
RAM | 9 GB (16 GB recommended) |
Disk Space | 35+ GB free |
Virtualization | Must be enabled (Apple Silicon/Intel supported) |
Tools Included | crc , oc (OpenShift CLI), VM image |
π§° Step 1: Download OpenShift Local & Pull Secret
- Visit: https://console.redhat.com/openshift/create/local
- Sign in with your Red Hat account (create a free one if needed).
- Download:
openshift-local.pkg
(installer for macOS)- Pull Secret file β Save it as
pull-secret.txt
π» Step 2: Install OpenShift Local (CRC)
- Double-click
openshift-local.pkg
to begin the installation. - Follow the macOS installer prompts.
- After installation, open Terminal and verify:
crc version
You should see the version (e.g., 2.49.0
) and OpenShift version (e.g., 4.18.x
).
π§ Step 3: Set Up the Cluster
In Terminal:
crc setup --pull-secret ~/Downloads/pull-secret.txt
Replace the path if your pull-secret is stored elsewhere.
This command:
- Sets up the Hypervisor VM
- Prepares OpenShift environment
- Installs the CRC bundle
βΆοΈ Step 4: Start the OpenShift Cluster
Run:
crc start
- This launches a single-node OpenShift 4 cluster.
- The process may take 5β15 minutes depending on your hardware.
- Once done, youβll see:
Started the OpenShift cluster
Console URL: https://console-openshift-console.apps-crc.testing
π Step 5: Access OpenShift Web Console
Open the printed URL:
https://console-openshift-console.apps-crc.testing
Login Credentials:
Role | Username | Password |
---|---|---|
Admin | kubeadmin | Shown in terminal |
Developer | developer | developer |
π§ͺ Step 6: Access via oc
CLI (Optional)
To set up the OpenShift CLI environment:
eval $(crc oc-env)
Then login:
oc login -u developer -p developer https://api.crc.testing:6443
Now you can deploy, test, and manage apps from your terminal.
π Cluster Management Commands
Action | Command |
---|---|
Stop cluster | crc stop |
Delete cluster | crc delete |
Status | crc status |
β οΈ Troubleshooting Tips
Issue | Fix |
---|---|
DNS resolution fails | Disable VPN; retry browser or oc with correct URL |
CRC fails to start | Check RAM/CPU availability and make sure no conflicting VMs |
crc command not found | Reboot or re-add /usr/local/bin to your shell $PATH |
Iβm a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Do you want to learn Quantum Computing?
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND