Giter Site home page Giter Site logo

savithruml / openshift-ansible Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openshift/openshift-ansible

0.0 1.0 2.0 22.86 MB

OpenShift Installation and Configuration Management

Home Page: https://install.openshift.com

License: Apache License 2.0

Shell 3.19% Python 96.10% JavaScript 0.01% HTML 0.41% Go 0.14% Roff 0.16%

openshift-ansible's Introduction

Red Hat OpenShift Origin with Contrail SDN

This tutorial walks you through the installation of Red Hat OpenShift container orchestration platform with Contrail SDN as the CNI on Amazon Web Services (AWS).

It leverages AWS's CloudFormation to launch the stack & takes approximately 30 min for the total installation to complete. The stack builds

  • Red Hat OpenShift Origin v3.7
  • Contrail Networking CNI 5.0

Prerequisites

  • Create an AWS account if you don't have one. Else Login

  • Subscribe to CentOS AMI on AWS marketplace

  • Create a GitHub account if you don't have one. Else Login

Installation

  • Click on the button below to launch the stack in AWS

    Launch Stack

  • Once you click on the button, you will be navigated to AWS CloudFormation page. Enter the parameters

    launch-stack

    NOTE: You can leave most of the parameters set to default

     InstanceType:
       Description: EC2 instance type
       Default: t2.xlarge
    
     VpcCIDR:
       Description: CIDR block for the VPC
       Default: 10.10.0.0/16
    
     SubnetCIDR:
       Description: CIDR block for the VPC subnet
       Default: 10.10.10.0/24
    
     MasterIPv4Address:
       Description: Master instance's IPv4 Address
       Default: 10.10.10.10
    
     MinionIPv4Address:
       Description: Minion instance's IPv4 Address
       Default: 10.10.10.11
    
     SSHLocation:
       Description: Allow access to EC2 instances from
       Default: 0.0.0.0/0
    
     InstancePassword:
       Description: Password for the instances
    
     ContrailBuild:
       Description: Contrail build information
       Default: 5.0
    
     ContrailRegistry:
       Description: Registry to pull Contrail containers
       Default: hub.juniper.net/contrail
    
     ContrailRegistryUsername:
       Description: Registry username
    
     ContrailRegistryPassword:
       Description: Registry password
    
  • Wait for the stack to complete. You can monitor the resource creation by clicking on the Events tab

    monitor-stack

  • Once complete, navigate to the Outputs tab & copy the ShellURL value. Login to the instance using the ShellURL & the password you set

    complete-stack

  • Run the script from the master instance's /root directory

     (local-instance)# ssh root@ec2-<public-ip>.us-west-1.compute.amazonaws.com
    
     (master-instance)# cd /root
     (master-instance)# ~/run.sh
    

    run-stack

  • Once install is complete, login to the dashboards (WebUI) of both OpenShift & Contrail. The URL's are listed in the Outputs tab of AWS CloudFormation

    openshift-webui

    contrail-webui

  • Verify all Contrail pods are running healthy, by logging into OpenShift & Contrail dashboards

    OpenShift Dashboard > My Projects > kube-system > Applications > Pods

    contrail-pods

    Contrail Dashboard > Monitor > Infrastructure > Dashboard

    contrail-status

  • Enable SNAT on the pod network, by logging into Contrail dashboard

    Contrail Dashboard > Configure > Networking > Networks > default-domain > default> k8s-default-pod-network (edit)

    enable-snat

  • Try the below labs

    1. LAB-1: Build/test/deploy highly scalable apps using OpenShift & Contrail SDN
    2. LAB-2: Expose highly scalable apps using OpenShift & Contrail SDN
    3. LAB-3: Secure highly scalable apps using OpenShift & Contrail SDN

openshift-ansible's People

Contributors

abutcher avatar ashcrow avatar brenton avatar cooktheryan avatar dav1x avatar detiber avatar dgoodwin avatar etsauer avatar ewolinetz avatar giuseppe avatar glennswest avatar ingvagabund avatar jarrpa avatar jcantrill avatar jwhonce avatar l3n41c avatar michaelgugino avatar mtnbikenc avatar mwoodson avatar openshift-merge-robot avatar oybed avatar rhcarvalho avatar sdodson avatar smunilla avatar sosiouxme avatar tbielawa avatar tdawson avatar tomassedovic avatar twiest avatar wshearn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.