Installing Red Hat OpenShift 2 Environment using Click2Cloud Inc.’s Auto Script – Tutorial Part 2 – Linux Broker Deployment

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker

Installing  Red Hat OpenShift 2 Environment using Click2Cloud Inc.’s Auto Script – Tutorial Part 2 – Linux Broker Deployment

 

Download Click2Cloud Inc.'s  Auto Script installer from https://github.com/click2Cloud/openshift2/  or register at www.register.click2cloud.net

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker

Supported Operating System

OpenShift Enterprises is supported on; 64-bit versions of Red Hat Enterprise Linux (RHEL) 6.4 or higher.

It is not supported on Fedora, RHEL 7.x, or CentOS 7.x. A minimal installation of RHEL is recommended to avoid package incompatibilities with OpenShift. This deployment have used RHEL 6.6 x64 image on a 10 GB Droplet.

Various methods you can use for deploying OpenShift Enterprise, one of them is Click2Cloud OSEV2 Script:

  • The OSEv2sh utility, it interactively gathers information about a deployment before automating the installation of an OpenShift Enterprise host. This method is intended for trials as well as production environment.
  • In this deployment, we have used OSEv2sh utility.

 

Install Linux 6.6 OS and Register the Subscription by command

If you do not have redhat subscription, you can register for the trial subscription from here (For POC only) or contact Redhat Support.

Once you have the subscription account details, register the subscription on broker/node using below command.

  • # subscription-manager register --username <username> --password <password> --auto-attach
  • e.g.: # subscription-manager register --username demo --password demo123 --auto-attach

 

 

Check the available subscription with your account and get the pool id (copy this pool id it will require in further installation)

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation.jpg

 

Attach the pool id having OSE subscription

#subscription-manager attach --pool <your pool id>

e.g.: # subscription-manager attach –pool 3affb61f013b3ef6a5fe0b9a

 

Enable only the Red Hat OpenShift Enterprise 2.2 Infrastructure channel:

#subscription-manager repos --enable rhel-6-server-ose-2.2-infra-rpms

 

Confirm that yum repolist displays the enabled channel:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation -2.jpg

 

Linux Broker Deployment

Run the Installation Utility

1.    You will get the Installation script with your Click2Cloud OpenShift .NET development kit from here or you can download (install.sh & openshift.sh) installation utility directly using the below command:

# curl -O https://raw.githubusercontent.com/Click2Cloud/openshift2/master/Click2Cloud_OpenShift.NET_development_kit/osev2-script/install.sh

# curl -O https://raw.githubusercontent.com/Click2Cloud/openshift2/master/Click2Cloud_OpenShift.NET_development_kit/osev2-script/openshift.sh

2.     Execute the installation utility to interactively configure one or more hosts:

# sh install.sh

3.    Follow the instructions provided below to deploy OpenShift Enterprise.

OpenShift Enterprises uses an interactive installation process. There are quite a few questions to answer, so pay attention! The questions are shown below, with the user input in red.

On the Main Menu you will see the multiple choices, which we will use one by one. So let’s start with installing broker.

  • Enter 1 to install broker:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker.jpg

 

  • Press y if you have RHN Account, redhat subscription is required to configure OSE v2:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker _ Yes.jpg

  • Enter your subscription details - User ID, Password and Subscription Pool_Id:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker _ Subscription Details.jpg

  • Press y to enter password details for Mcollective, Mongodb and Openshift. If you select n it will randomly generate the password:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker _ Press Y.jpg

  • Enter the DNS details here- Cloud domain name, Hosts domain name and Broker FQDN:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker _ DNS Details.jpg

  • Enter Broker IP Address:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker _ Broker IP.jpg

  • Select the default gear size for broker:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker _ Gear Size.jpg

  • Review the entered details before the installation starts. All the installation logs will store on sh.broker.log file in current directory. If you want to re-enter the details press n else press y to proceed the installation:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker _ Broker Log.jpg

Once the installation started, it will take an hour to complete the installation. Make sure you have full internet access on broker to get the required packages from internet.

Once it’s completed, it will return to the main menu.

 

  • Now check the broker is installed successfully and the services is running properly. Enter 3 to check broker:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker _ Check Broker.jpg

  • It will check all the required services and configuration files. If everything is up and running you will see the PASS message:

 Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker _ Pass Broker.jpg

Now you have successfully configured Broker in 10 steps.

 

To check the broker from console:

Please reset the demo user password to login from browser.

# htpasswd /etc/openshift/htpasswd demo

New password: *****
Re-type new password: *****

 

Now open browser and enter the broker FQDN or IP address to login on broker console:

https://broker.openshift.example.com/

 

Once you login you will see the OpenShift console to create applications:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install broker _ Create Application.jpg

Please Note: To create Red Hat Linux based application you have to add Linux node to broker. Please follow the further steps to configure and add Linux node.

This is the second part of the tutorial for enabling the OpenShift 2.O for Microsoft Windows. You can visit the other tutorials at;

Part 1 -  System Requirements

https://blog.click2cloud.net/2016/04/26/installing-red-hat-openshift-2-x-environment-using-click2cloud-inc-s-auto-script-part-1-system-requirements/

Part 2 - Linux Broker Deployment

https://blog.click2cloud.net/2016/04/26/installing-red-hat-openshift-2-x-environment-using-click2cloud-inc-s-auto-script-part-2-linux-broker-deployment/

Part 3 - Linux Node Deployment

https://blog.click2cloud.net/2016/04/26/installing-red-hat-openshift-2-x-environment-using-click2cloud-inc-s-auto-script-part-3-linux-node-deployment/

Part 4 - Windows Node Pre-requisite

https://blog.click2cloud.net/2016/04/26/installing-red-hat-openshift-2-x-environment-using-click2cloud-inc-s-auto-script-part-4-windows-node-prerequisites/

Part 5 - Windows Node Deployment

https://blog.click2cloud.net/2016/04/26/installing-red-hat-openshift-2-x-environment-using-click2cloud-inc-s-auto-script-part-5-windows-node-deployment/

 

For any queries, you can contact: contact@click2cloud.net , OR +1 (425) 749-7495 and +1 (425) 748-9666

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *