Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

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

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 -p ~/Downloads/pull-secret.txt
or
crc start --pull-secret-file ~/Downloads/pull-secret.txt
Code language: JavaScript (javascript)
  • 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
Code language: JavaScript (javascript)

rajesh@DM-GYK3HC26H7 ~ % crc start --pull-secret-file ~/Downloads/pull-secret.txt
INFO Using bundle path /Users/rajesh/.crc/cache/crc_vfkit_4.21.14_arm64.crcbundle 
INFO Checking if running macOS version >= 13.x    
INFO Checking if running as non-root              
INFO Checking if crc-admin-helper executable is cached 
INFO Checking if running on a supported CPU architecture 
INFO Checking if crc executable symlink exists    
INFO Checking minimum RAM requirements            
INFO Checking if running emulated on Apple silicon 
INFO Checking if vfkit is installed               
INFO Checking if old launchd config for tray and/or daemon exists 
INFO Checking if crc daemon plist file is present and loaded 
INFO Checking SSH port availability               
INFO Loading bundle: crc_vfkit_4.21.14_arm64...   
INFO Starting CRC VM for openshift 4.21.14...     
INFO CRC instance is running with IP 127.0.0.1    
INFO CRC VM is running                            
INFO Updating authorized keys...                  
INFO Configuring shared directories               
INFO Check internal and public DNS query...       
INFO Check DNS query from host...                 
INFO Verifying validity of the kubelet certificates... 
INFO Starting kubelet service                     
INFO Waiting for kube-apiserver availability... [takes around 2min] 
INFO Adding user's pull secret to the cluster...  
INFO Updating SSH key to machine config resource... 
INFO Overriding password for developer user       
INFO Changing the password for the users          
INFO Updating cluster ID...                       
INFO Updating root CA cert to admin-kubeconfig-client-ca configmap... 
INFO Starting openshift instance... [waiting for the cluster to stabilize] 
INFO 6 operators are progressing: console, dns, image-registry, ingress, openshift-controller-manager, ... 
INFO 3 operators are progressing: authentication, network, openshift-controller-manager 
INFO All operators are available. Ensuring stability... 
INFO Operators are stable (2/3)...                
INFO Operators are stable (3/3)...                
INFO Waiting until the user's pull secret is written to the instance disk... 
INFO Adding crc-admin and crc-developer contexts to kubeconfig... 
Started the OpenShift cluster.

The server is accessible via web console at:
  https://console-openshift-console.apps-crc.testing

Log in as administrator:
  Username: kubeadmin
  Password: j33RY-Xxx9Z-bbgUw-FzkaB

Log in as user:
  Username: developer
  Password: developer

Use the 'oc' command line interface:
  $ eval $(crc oc-env)
  $ oc login -u developer https://api.crc.testing:6443
rajesh@DM-GYK3HC26H7 ~ % 
Code language: PHP (php)

Step 5: Access OpenShift Web Console

Open the printed URL:

https://console-openshift-console.apps-crc.testing
Code language: JavaScript (javascript)

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)
Code language: JavaScript (javascript)

Then login:

oc login -u developer -p developer https://api.crc.testing:6443
Code language: JavaScript (javascript)

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

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Best DevOps Tools in 2024

hereโ€™s a clear, structured breakdown of the Best DevOps Tools (grouped by categories), so you can use it for learning, training, or posts. ๐Ÿš€ Best DevOps Tools…

Read More

OpenShift Tutorial โ€“ Deploy and Access Your First Applications using OpenShift Local

How to install oc? OpenShift: How to Install OpenShift CLI oc How to login? Login to the Openshift using Web Console and CLI using oc Copy the admin…

Read More

OpenShift Lab 14: Setting Up and Using OpenShift Serverless Functions on OpenShift Local

Lab Objective In this lab, you will install and use OpenShift Serverless Functions on OpenShift Local. You will create a simple Node.js serverless function, deploy it to…

Read More

OpenShift Lab 13: Deploy a Java Spring Boot Application with MySQL Using the OpenShift Web Console

Lab Objective In this lab, you will deploy a Java Spring Boot application on OpenShift using the OpenShift web console. You will deploy two components: The Java…

Read More

OpenShift Lab 12: Deploy an Application from an Existing Container Image Using the OpenShift Web Console

Lab Objective In this lab, you will deploy an application on OpenShift from an existing container image. This lab is different from building an application from source…

Read More

OpenShift: How to Install OpenShift CLIย oc

Option – 1 – REDHAT Websites URL – https://access.redhat.com/downloads/content/290/ver=4.18/rhel—9/4.18.11/x86_64/product-software Option – 2 – OKD Websites The OKD (Origin Community Distribution of Kubernetes for OpenShift) is the open-source…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Jason Mitchell
Jason Mitchell
17 days ago

A useful addition would be to highlight some of the practical considerations of using OpenShift Local on macOS in day-to-day development. Although it offers a convenient way to experiment with OpenShift, developers may encounter issues related to memory consumption, disk usage, networking conflicts, and performance differences between Intel and Apple Silicon systems. It would also be helpful to explain that OpenShift Local is best suited for development and functional testing, while capabilities such as multi-node scheduling, resiliency testing, and cluster lifecycle management are better evaluated in a full OpenShift environment. Understanding these distinctions can help teams choose the right platform for each stage of the application lifecycle.

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