Navigation Menu

Skip to content

Starting Local OpenShift 3.x Instance

Mohit Suman edited this page Aug 30, 2020 · 1 revision

Welcome !! Let the story with OpenShift begin :)

Configure OpenShift

Currently the quick way to configure and run OpenShift 3.x is using either:

  • Minishift
  • Container Development Kit

Minishift

Welcome to Minishift!

Minishift is a tool that helps you run OpenShift locally by running a single-node OpenShift cluster inside a VM. You can try out OpenShift or develop with it, day-to-day, on your local host.

For more details visit: https://github.com/minishift/minishift

Installing Minishift

Running Minishift

For detailed explanation please follow: https://docs.okd.io/latest/minishift/getting-started/quickstart.html

  • Run the minishift start command:
$ minishift start

Sample Output:
OpenShift server started.

The server is accessible via web console at:
   https://xxx.xxx.xx.xx:8443/console

You are logged in as:
   User:     developer
   Password: <any value>

To login as administrator:
   oc login -u system:admin

Installing minishift addons

After minishift has started and url is configured, it is time to enable certain addons to the openshift cluster.

  1. List the default addons:
$ minishift addons list
  1. Install addons for enabling java components.

Note: Xpaas addon depends on redhat-registry-login and has to be applied after the redhat-registry-login is applied.

$ minishift addon apply redhat-registry-login -a REGISTRY_USERNAME=<redhat-developer-username> -a REGISTRY_PASSWORD=<password>

Info: The username and password refer to the credentials needed to accesss registry.redhat.io. Users need to create account at developers.redhat.com.

$ minishift addon apply xpaas

Enabling Service Catalog to the OpenShift Cluster

$ minishift openshift component add service-catalog

$ minishift openshift component add automation-service-broker

$ minishift openshift component add template-service-broker