Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Prerequisites

Download and Install UTM - https://mac.getutm.app

Create the VM


Setup

Go to https://console.redhat.com/openshift/cluster-list

...

Property

Value

Notes
Cluster Nameopen shiftopenshift-john
Base Domain

jmehan.com

Enter any domain here. It doesn't have to be registered as it will be resolved locally.

OpenShift version

OpenShift 4.1614.8xxx
CPU architectureARM64Apple M1 uses Arm64 architecture
IYES (Check) 
Hosts' network configurationStatic IP, bridges, and bonds 

...

Property

Value

Notes
DNS192.168.1.52,8.8.8.8Valid DNS that can be accessed during the installation process. No space after comma.
IPv4192.168.1.0 / 24
Default gateway192.168.1.1

...

On the Add host popup, select Full image file under Provisioning type and click Generate Discovery ISO.

Download the ISO.



Create the VM

Open UTM and click Create

Image Added

Click Vitualize

Image Added

Click Linux

Image Added

Check Use Apple Virtualization, click browse and select any file and click Continue.


Image Added


Select max memory and 10 Cores and click Continue.

Image Added

Select 120GB storage size and click Continue.

Image Added

On the Shared Directory screen, click Continue.

Image Added

On the Summary screen, check Open VM Settings and click Save.

Image Added

On the VM Settings Page, name your VM. 

Image Added


Verify Settings

Image AddedImage AddedImage AddedImage Added

Revise Display Settings to use 1024x640.

Image Added

Revise Networking Settings

Image Added

Network ModeBridged
Mac Addressaa:aa:aa:aa:aa:aa
Interfaceen0


Under Drives, delete the drive created earlier by right mouse clicking and selecting Delete.

Image Added

Under Drives, click New and import the discovery iso image that was downloaded earlier and click Save.

Image AddedImage Added

Start the VM

Image AddedImage Added



Continue Installation

The Host Discovery should eventually find your VM. Once it does, click Next.

Image Added

Click on the host (aa:aa:aaaa:aa:aa) and rename the discovered host and click Change.

Image Added

Review Storage and click Next

Image Added

Review Networking and click Next.

Image Added

On the Review and Create screen, click Install Cluster.

Image Added

After about 50mins or so, the installation will complete.



Login using the link provided below

https://console-openshift-console.apps.openshift-john.jmehan.com

Image Added

Note the username and password are also made available on this screen.


In the event. that you can't access, you may need to add to your DNS server or to your local /etc/hosts file.

Code Block
192.168.1.55    api.openshift-john.jmehan.com
192.168.1.55    oauth-openshift.apps.openshift-john.jmehan.com
192.168.1.55    console-openshift-console.apps.openshift-john.jmehan.com
192.168.1.55    grafana-openshift-monitoring.apps.openshift-john.jmehan.com
192.168.1.55    thanos-querier-openshift-monitoring.apps.openshift-john.jmehan.com
192.168.1.55    prometheus-k8s-openshift-monitoring.apps.openshift-john.jmehan.com
192.168.1.55    alertmanager-main-openshift-monitoring.apps.openshift-john.jmehan.com


If your DNS supports wildcards you can add:

Code Block
api.openshift-john.jmehan.com      A	192.168.1.55
*.apps.openshift-john.jmehan.com   A	192.168.1.55



Installing the Command Line Tool

https://ibm.github.io/AppRuntimesOpenShiftDay2Labs/openshift_login_commandline/


Mac ARM Download Link: https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable/openshift-client-mac-arm64.tar.gz


Code Block
tar xvfz 
sudo mv ./oc /usr/local/bin/.


Logging In

From the console, click the top right hand corner to Copy login command.

Image Added


Image Added

Login using the command provided above.

Code Block
oc login --token=sha256~XXXXXXXXXXXXXXXX --server=https://api.openshift-john.jmehan.com:6443


Logging in with the oc login will also update your ~/.kube/config file with the kubeconfig details for the cluster.


References

ReferenceURL
HOW TO: install Openshift single node on Mac Book (apple silicon)https://www.youtube.com/watch?v=f_AqfaA-HUA