Show List
Set Up OpenShift on Windows Computer
Setting up an OpenShift cluster involves several steps, including preparing the environment, installing the OpenShift software, and configuring the cluster. Here is the process to set up OpenShift on Windows computer.
Virtualization
Ensure Virtualization is enabled on the computer
Virtual Box
Download virtual box from the official website https://www.virtualbox.org/wiki/Downloads for your operating system and install
Download Minishift
Download Minishift zip from official website https://docs.okd.io/3.11/minishift/getting-started/installing.html
Extract the zip in C drive
Go to this location from command prompt and run command "minishift.exe start --vm-driver virtualbox"
It will download the iso image and start the OpenShift. If the ISO was already installed, it will start the OpenShift.
C:\minishift-1.34.3-windows-amd64>minishift.exe start --vm-driver virtualbox -- Starting profile 'minishift' -- Check if deprecated options are used ... OK -- Checking if https://github.com is reachable ... OK -- Checking if requested OpenShift version 'v3.11.0' is valid ... OK -- Checking if requested OpenShift version 'v3.11.0' is supported ... OK -- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK -- Checking if VirtualBox is installed ... OK -- Checking the ISO URL ... OK -- Downloading OpenShift binary 'oc' version 'v3.11.0' 53.59 MiB / 53.59 MiB [===================================================================================] 100.00% 0s-- Downloading OpenShift v3.11.0 checksums ... OK -- Checking if provided oc flags are supported ... OK -- Starting the OpenShift cluster using 'virtualbox' hypervisor ... -- Minishift VM will be configured with ... Memory: 4 GB vCPUs : 2 Disk size: 20 GB Downloading ISO 'https://github.com/minishift/minishift-centos-iso/releases/download/v1.17.0/minishift-centos7.iso' 375.00 MiB / 375.00 MiB [=================================================================================] 100.00% 0s -- Starting Minishift VM .............................. OK -- Checking for IP address ... OK -- Checking for nameservers ... OK -- Checking if external host is reachable from the Minishift VM ... Pinging 8.8.8.8 ... OK -- Checking HTTP connectivity from the VM ... Retrieving http://minishift.io/index.html ... OK -- Checking if persistent storage volume is mounted ... OK -- Checking available disk space ... 1% used OK -- Writing current configuration for static assignment of IP address ... OK Importing 'openshift/origin-control-plane:v3.11.0' . CACHE MISS Importing 'openshift/origin-docker-registry:v3.11.0' . CACHE MISS Importing 'openshift/origin-haproxy-router:v3.11.0' . CACHE MISS -- OpenShift cluster will be configured with ... Version: v3.11.0 -- Pulling the OpenShift Container Image ......... OK -- Copying oc binary from the OpenShift container image to VM ... OK -- Starting OpenShift cluster ......................................................... Getting a Docker client ... Checking if image openshift/origin-control-plane:v3.11.0 is available ... E1029 13:11:49.413147 2818 helper.go:173] Reading docker config from /home/docker/.docker/config.json failed: open /home/docker/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-cli:v3.11.0 anonymously Pulling image openshift/origin-cli:v3.11.0 Image pull complete E1029 13:11:50.348268 2818 helper.go:173] Reading docker config from /home/docker/.docker/config.json failed: open /home/docker/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-node:v3.11.0 anonymously Pulling image openshift/origin-node:v3.11.0 Pulled 5/6 layers, 90% complete Pulled 6/6 layers, 100% complete Extracting Image pull complete Checking type of volume mount ... Determining server IP ... Using public hostname IP 192.168.99.100 as the host IP Checking if OpenShift is already running ... Checking for supported Docker version (=>1.22) ... Checking if insecured registry is configured properly in Docker ... Checking if required ports are available ... Checking if OpenShift client is configured properly ... Checking if image openshift/origin-control-plane:v3.11.0 is available ... I1029 13:12:00.243282 2818 config.go:40] Running "create-master-config" Starting OpenShift using openshift/origin-control-plane:v3.11.0 ... I1029 13:12:02.321920 2818 config.go:46] Running "create-node-config" I1029 13:12:03.088424 2818 flags.go:30] Running "create-kubelet-flags" I1029 13:12:03.424116 2818 run_kubelet.go:49] Running "start-kubelet" I1029 13:12:03.627529 2818 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ... I1029 13:12:26.643666 2818 interface.go:26] Installing "kube-proxy" ... I1029 13:12:26.644587 2818 interface.go:26] Installing "kube-dns" ... I1029 13:12:26.644597 2818 interface.go:26] Installing "openshift-service-cert-signer-operator" ... I1029 13:12:26.644601 2818 interface.go:26] Installing "openshift-apiserver" ... I1029 13:12:26.644631 2818 apply_template.go:81] Installing "openshift-apiserver" I1029 13:12:26.645785 2818 apply_template.go:81] Installing "kube-dns" I1029 13:12:26.647040 2818 apply_template.go:81] Installing "kube-proxy" I1029 13:12:26.647270 2818 apply_template.go:81] Installing "openshift-service-cert-signer-operator" I1029 13:12:31.042460 2818 interface.go:41] Finished installing "kube-proxy" "kube-dns" "openshift-service-cert-signer-operator" "openshift-apiserver" I1029 13:14:59.077640 2818 run_self_hosted.go:242] openshift-apiserver available I1029 13:14:59.078274 2818 interface.go:26] Installing "openshift-controller-manager" ... I1029 13:14:59.078300 2818 apply_template.go:81] Installing "openshift-controller-manager" I1029 13:15:02.566820 2818 interface.go:41] Finished installing "openshift-controller-manager" Adding default OAuthClient redirect URIs ... Adding centos-imagestreams ... Adding registry ... Adding router ... Adding sample-templates ... Adding persistent-volumes ... Adding web-console ... I1029 13:15:02.592734 2818 interface.go:26] Installing "centos-imagestreams" ... I1029 13:15:02.592743 2818 interface.go:26] Installing "openshift-image-registry" ... I1029 13:15:02.592748 2818 interface.go:26] Installing "openshift-router" ... I1029 13:15:02.592752 2818 interface.go:26] Installing "sample-templates" ... I1029 13:15:02.592756 2818 interface.go:26] Installing "persistent-volumes" ... I1029 13:15:02.592764 2818 interface.go:26] Installing "openshift-web-console-operator" ... I1029 13:15:02.592983 2818 apply_template.go:81] Installing "openshift-web-console-operator" W1029 13:15:02.593723 2818 create_secret.go:78] Error reading $HOME/.docker/config.json: open /home/docker/.docker/config.json: no such file or directory, imagestream import credentials will not be setup I1029 13:15:02.593789 2818 apply_list.go:67] Installing "centos-imagestreams" I1029 13:15:02.594711 2818 interface.go:26] Installing "sample-templates/dancer quickstart" ... I1029 13:15:02.594721 2818 interface.go:26] Installing "sample-templates/django quickstart" ... I1029 13:15:02.594783 2818 interface.go:26] Installing "sample-templates/rails quickstart" ... I1029 13:15:02.594791 2818 interface.go:26] Installing "sample-templates/mongodb" ... I1029 13:15:02.594796 2818 interface.go:26] Installing "sample-templates/mariadb" ... I1029 13:15:02.594800 2818 interface.go:26] Installing "sample-templates/postgresql" ... I1029 13:15:02.594805 2818 interface.go:26] Installing "sample-templates/cakephp quickstart" ... I1029 13:15:02.594809 2818 interface.go:26] Installing "sample-templates/mysql" ... I1029 13:15:02.594813 2818 interface.go:26] Installing "sample-templates/nodejs quickstart" ... I1029 13:15:02.594818 2818 interface.go:26] Installing "sample-templates/jenkins pipeline ephemeral" ... I1029 13:15:02.594822 2818 interface.go:26] Installing "sample-templates/sample pipeline" ... I1029 13:15:02.594881 2818 apply_list.go:67] Installing "sample-templates/sample pipeline" I1029 13:15:02.595609 2818 apply_list.go:67] Installing "sample-templates/dancer quickstart" I1029 13:15:02.595881 2818 apply_list.go:67] Installing "sample-templates/django quickstart" I1029 13:15:02.596080 2818 apply_list.go:67] Installing "sample-templates/rails quickstart" I1029 13:15:02.596247 2818 apply_list.go:67] Installing "sample-templates/mongodb" I1029 13:15:02.596415 2818 apply_list.go:67] Installing "sample-templates/mariadb" I1029 13:15:02.596617 2818 apply_list.go:67] Installing "sample-templates/postgresql" I1029 13:15:02.596776 2818 apply_list.go:67] Installing "sample-templates/cakephp quickstart" I1029 13:15:02.596925 2818 apply_list.go:67] Installing "sample-templates/mysql" I1029 13:15:02.597149 2818 apply_list.go:67] Installing "sample-templates/nodejs quickstart" I1029 13:15:02.597305 2818 apply_list.go:67] Installing "sample-templates/jenkins pipeline ephemeral" I1029 13:15:19.875490 2818 interface.go:41] Finished installing "sample-templates/dancer quickstart" "sample-templates/django quickstart" "sample-templates/rails quickstart" "sample-templates/mongodb" "sample-templates/mariadb" "sample-templates/postgresql" "sample-templates/cakephp quickstart" "sample-templates/mysql" "sample-templates/nodejs quickstart" "sample-templates/jenkins pipeline ephemeral" "sample-templates/sample pipeline" I1029 13:15:55.326403 2818 interface.go:41] Finished installing "centos-imagestreams" "openshift-image-registry" "openshift-router" "sample-templates" "persistent-volumes" "openshift-web-console-operator" Login to server ... Creating initial project "myproject" ... Server Information ... OpenShift server started. The server is accessible via web console at: https://192.168.99.100:8443/console You are logged in as: User: developer Password: <any value> To login as administrator: oc login -u system:admin -- Exporting of OpenShift images is occuring in background process with pid 18820.
Open shift console can now be accessed from the url printed in the log :
"https://192.168.99.100:8443/console"
Login credentials are also in the log.
httCpsCr://192.168.99.100:8443/console
After entering the credentials:
Clicking on the "My Project" link on the right will show the project dashboard.
Minishift can be stopped by running the command "minishift stop"
C:\minishift-1.34.3-windows-amd64>minishift stop Stopping the OpenShift cluster... Cluster stopped.
Leave a Comment