Setup
Go to https://console.redhat.com/openshift/cluster-list
Select Cluster List and click Create cluster.
Select Local and select MacOS and x86_64 and click the Download OpenShift Local.
Once downloaded, run the package.
Install OC Client
crc oc-env
Setup
crc setup
Starting the Cluster
Once downloaded and extracted, run:
crc start
Grab the pull secrets form the UI by clicking the Copy pull secret link.
Past the pull secret to the terminal
Login
oc login -u kubeadmin https://api.crc.testing:6443
CRC
CRC is a tool that manages a local OpenShift 4.x cluster optimized for testing and development purposes Usage: crc [flags] crc [command] Available Commands: bundle Manage CRC bundles cleanup Undo config changes completion Generate the autocompletion script for the specified shell config Modify crc configuration console Open the OpenShift Web Console in the default browser delete Delete the instance help Help about any command ip Get IP address of the running OpenShift cluster oc-env Add the 'oc' executable to PATH podman-env Setup podman environment setup Set up prerequisites for using CRC start Start the instance status Display status of the OpenShift cluster stop Stop the instance version Print version information Flags: -h, --help help for crc --log-level string log level (e.g. "debug | info | warn | error") (default "info")
References
Reference | URL |
---|---|
Install Red Hat OpenShift Local Kubernetes in macOS on MacBook Pro Intel x86_64 and M1 arm64 | https://www.youtube.com/watch?v=Qr2Gdc6p00A |