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

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

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

 

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

 

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.

3.1 Enter 2 to install node

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

3.2  Press y if you have RHN Account, redhat subscription is required to configure linux node:

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

3.3 Enter your subscription details - User ID, Password and Subscription Pool_Id (you can use the same subscription which used in broker):

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

3.4 Enter mcollective password which provided in broker, else you can check the cfg file on broker at this path – /opt/rh/ruby193/root/etc/mcollective/client.cfg :

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

3.5 Enter the details like cloud domain, host domain, broker fqdn, broker ip and linux node fqdn:

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

 

3.6 Select the default gear size for broker:

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

3.7 Type the cartridges name which you want to download and configure, if you are not sure leave it blank, it will select the default list of cartridges shown below:

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

3.8 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 Linux Node - Confirm.jpg

Once the installation started, it will take an hour to complete it. Make sure you have full internet access on Linux Node to get the required packages from internet and broker should be reachable from node.

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

3.9 Now check the Linux Node is installed successfully and the services is running properly. Enter 4 to check node:

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

3.10 It will check all the required services, node.conf and other 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 Linux Node - Pass Message.jpg

You have successfully configured Linux Node in 10 steps.

 

 

On Broker

Now go to broker and check the connectivity using the below command:

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

You can see the node is available at broker. Now create district on broker and add linux node to it.

 

 

Create District (on Broker) and add Linux Node

To create district run the install.sh utility downloaded earlier on broker.

# sh install.sh

A. Enter 5 to Manage District:

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

 

B. Enter 1 to Create District:

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

C. Enter 1 to select linux platform and enter the name for linux district:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install Linux Node - Give name to linux District.jpg

D. It will create district and show the information as shown below:

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

 

E. In the Manage District menu, select 2 to Add Node to a district:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install Linux Node - Add Node to District.jpg

F. Enter the district name and linux node fqdn, once you enter it will check and add the linux node to district:

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

 

 

Create first application using Linux Cartridge

Open browser and enter the broker FQDN or IP address to login to broker console:

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

Once you login you will see the OpenShift console to create applications, Click on Create your first application now:

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

Now select the cartridge to create application:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install Linux Node - Cartridge New Application.jpg

 

Provide meaningful name to your application and click to Create Application:

Installing Red Hat OpenShift Environment using Click2Cloud Auto Script - Linux Broker installation - Install Linux Node - Name New Application.jpg

 

 

It will create PHP application in couple of mins:

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

 

So till now we have successfully configured broker, configured linux node and added it to broker, created district and created first app using linux cartridge.

Now we will configure windows node with OpenShift broker.

 

This is the third 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/

 

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

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 *