With the Che 7 just around the corner, and the realisation that I miss writing, I've decided to resurrect this blog from the dead and start a series of Che 7 tips.
First up, the handful of steps required to get Che 7 running on Minishift 1.34 (OKD 3.11).
----
----
Deploying Che 7 to Minishift with chectl
Prerequisites
Fetch them like this (or similar):
cd ~/bin
curl -sSL https://github.com/che-incubator/chectl/releases/download/20190724230954/chectl-linux -o chectl
chmod +x chectl
cd /tmp
curl -sSL https://github.com/minishift/minishift/releases/download/v1.34.1/minishift-1.34.1-linux-amd64.tgz -o minishift.tgz
tar xvzf minishift.tgz
mv minishift*/minishift ~/bin/
chmod +x ~/bin/minishift
Procedure
- Start up minishift. (See Start up Minishift for some suggested default settings.)
minishift start
- Log in once startup is complete. NOTE: you need cluster admin priviledges.
oc login 192.168.MY.IP:8433 -u system -p admin
- To watch the events and see which images are pulled, see this document.
- Deploy Che to minishift using the operator:
chectl server:start -a operator -p minishift -n che
- If using Fix the plugin registry URL to use the latest version:
oc set env dc/che CHE_WORKSPACE_PLUGIN__REGISTRY__URL=https://che-plugin-registry.openshift.io/v3
You can also use the-a minishift-addon
approach to deploy che, which uses a deployment configuration instead of an operator. However, this approach is deprecated as it does not support using a custom resource (eg., for air gap deployments).Also, if using Minishift 1.34.0 or earlier with theminishift-addon
, you must fix the plugin registry URL to use the latest version:oc set env dc/che CHE_WORKSPACE_PLUGIN__REGISTRY__URL=https://che-plugin-registry.openshift.io/v3
You can open the console for the cheminishift-addon
deployment to verify your change has been applied:You should see:CHE_WORKSPACE_PLUGIN__REGISTRY__URL = https://che-plugin-registry.openshift.io/v3
- Wait for redeployment to complete.
- Once running, you can see your Che instance here:
- http://che-che.192.168.YOUR.IP.nip.io/
- If you then add a new workspace, you can see even more images pulled in the openshift event log.
0 comments:
Post a Comment