IBM-Cloud / terraform-ibm-openshift

Provision IBM Cloud infrastructure with Terraform, and install Red Hat® OpenShift Container Platform 3.
15 stars 41 forks source link

terraform-ibm-openshift

Use this project to set up Red Hat® OpenShift Container Platform 3.11 on IBM Cloud, using Terraform.

Overview

Deployment of 'OpenShift Container Platform on IBM Cloud' is divided into separate steps.

The following figure illustrates the deployment architecture for the 'OpenShift Container Platform on IBM Cloud'.

Infrastructure Diagram

Prerequisite

Steps to bringup the docker container with IBMCloud Terraform Provider

Steps to execute inside the docker container

1. Setup the IBM Terraform Openshift Project

2. Provision the IBM Cloud Infrastructure for Red Hat® OpenShift

In this version, the following infrastructure elements are provisioned for OpenShift (as illustrated in the picture)

On successful completion, you will see the following message

   ...

   Apply complete! Resources: 63 added, 0 changed, 0 destroyed.

3. Setup Red Hat® Repositories and images

This step includes the following:

4. Deploy OpenShift Container Platform on IBM Cloud Infrastructure

To install OpenShift on the cluster, just run:

    $ make openshift

This step includes the following:

using installation procedure described here.

Once the setup is complete, just run:

    $ open https://$(terraform output master_public_ip):8443/console

Note: Add IP and Host Entry in /etc/hosts

This figure illustrates the 'Red Hat Openshift Console'

Openshift Console

To open a browser to admin console, use the following credentials to login:

    Username: admin
    Password: test123

Work with OpenShift

Optional Commands

Run make nodeprivate to block all incoming traffic on public interface, to the infra nodes and app nodes

Run make nodepublic to allow all incoming traffic on public interface, to the infra nodes and app nodes

Destroy the OpenShift cluster

Bring down the openshift cluster by running following

   $ make destroy

Troubleshooting

[Work in Progress]

References