It seems like Minishift has been discontinued. Starting from Openshift 4.X you can alternatively use Openshift Local to set up your cluster and get started.
Once you login in into your Redhat account, you can install a local version of Openshift, by following the instructions at:
https://console.redhat.com/openshift/create/local
Follow the step 1: downlaod both the Openshift local archive and the pull secret (text file).
The latest version available for Openshift Local is currently 2.20:
https://access.redhat.com/documentation/en-us/red_hat_openshift_local/2.20/html/getting_started_guide/index
With Openshift Local you get an ephemeral cluster for learning and development purpose, with no upgrade opportunity.
It’s basically a single node platform, where the node works both as control plane and worker node.
Cluster monitoring is disabled, so you can’t use the web console to the full.
The Openshift local cluster we are using is also known as CodeReadyContainers (CRC). It’s basically a minimal environment for development and testing purposes.
To install the CRC environment on ubuntu, you can follow the steps similiar to the old Minishift installation:
https://dsri.maastrichtuniversity.nl/docs/guide-local-install/
Then you need to extract the crc binary from the Openshift local version installed and put int under /usr/bin.
This will allow you to run crc commands from the bash shell.
Run “crc setup”. you will get an output like:
CRC is constantly improving and we would like to know more about usage (more details at https://developers.redhat.com/article/tool-data-collection)
Your preference can be changed manually if desired using 'crc config set consent-telemetry <yes/no>'
Would you like to contribute anonymous usage statistics? [y/N]: y
Thanks for helping us! You can disable telemetry with the command 'crc config set consent-telemetry no'.
INFO Using bundle path /home/laura/.crc/cache/crc_libvirt_4.13.0_amd64.crcbundle
INFO Checking if running as non-root
INFO Checking if running inside WSL2
INFO Checking if crc-admin-helper executable is cached
INFO Caching crc-admin-helper executable
INFO Using root access: Changing ownership of /home/laura/.crc/bin/crc-admin-helper-linux
INFO Using root access: Setting suid for /home/laura/.crc/bin/crc-admin-helper-linux
INFO Checking if running on a supported CPU architecture
INFO Checking if crc executable symlink exists
INFO Creating symlink for crc executable
INFO Checking minimum RAM requirements
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Checking if user is part of libvirt group
INFO Checking if active user/process is currently part of the libvirt group
You need to logout, re-login, and run crc setup again before the user is effectively a member of the 'libvirt' group.
Restart your machine and retry “crc setup”. This time it will download the bundle:
Downloading bundle: /home/laura/.crc/cache/crc_libvirt_4.13.0_amd64.crcbundle…
At the end, you should get something like:
Your system is correctly setup for using CRC. Use ‘crc start’ to start the instance
The you can finally run “crc start -p pull-secrets.txt”.
It will ask to enter the pull secret, that you downloaded previousyl from https://console.redhat.com/openshift/create/local.
The crc utility will install the user’s pull secret to the instance disk.
It will create a virtual machine for Openshift 4.x.x. and finally start the openshift instance.
It will take 5-10 minutes if you have more than 64 GB ram… So relax and wait for the following messages, if everything works correctly:
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: xxxxxxxxxxxxxxxxx
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
You will be able to access the instance in the browser and login.
You can download the OC CLI directly from the web console. Extract the binary and move it to your binary folder:
sudo mv oc /usr/local/bin/
You can try to login via CLI:
> oc login -u developer https://api.crc.testing:6443
If you login with the admin credentials, of course you have access to more information.
If it fails to restart:
crc stop
crc delete
-f
crc cleanup
sudo systemctl restart libvirtd.service
crc start
The defaul created services are of type ClusterIP, but you can easily convert them to NodePort:
oc patch svc hello-world-go-openshift-git -p '{"spec": {"type": "NodePort"}}'
To expose:
kubectl expose pod rabbitmq-0 --port=15672 --target-port=15672 --type=NodePort