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 MacOS laptops/desktops

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

FeatureDescription
Tool NameOpenShift Local (CLI tool: crc)
RunsSingle-node OpenShift 4.x cluster
VirtualizationUses Apple’s Hypervisor.framework (no VirtualBox required)
Use CaseIdeal for local development, testing OpenShift apps, and CLI practice

βœ… System Requirements

RequirementMinimum (Recommended)
OSmacOS Monterey (12.x) or later
CPU4 cores
RAM9 GB (16 GB recommended)
Disk Space35+ GB free
VirtualizationMust be enabled (Apple Silicon/Intel supported)
Tools Includedcrc, oc (OpenShift CLI), VM image

🧰 Step 1: Download OpenShift Local & Pull Secret

  1. Visit: https://console.redhat.com/openshift/create/local
  2. Sign in with your Red Hat account (create a free one if needed).
  3. Download:
    • openshift-local.pkg (installer for macOS)
    • Pull Secret file β†’ Save it as pull-secret.txt

πŸ’» Step 2: Install OpenShift Local (CRC)

  1. Double-click openshift-local.pkg to begin the installation.
  2. Follow the macOS installer prompts.
  3. 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:

RoleUsernamePassword
AdminkubeadminShown in terminal
Developerdeveloperdeveloper

πŸ§ͺ 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

ActionCommand
Stop clustercrc stop
Delete clustercrc delete
Statuscrc status

⚠️ Troubleshooting Tips

IssueFix
DNS resolution failsDisable VPN; retry browser or oc with correct URL
CRC fails to startCheck RAM/CPU availability and make sure no conflicting VMs
crc command not foundReboot or re-add /usr/local/bin to your shell $PATH

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