Giter Club home page Giter Club logo

ibmcloud-tile-roks-on-vpc2's Introduction

ROKS on VPC Gen-2 Example

Introduction

This Example enables user to create a RedHat Openshift cluster on the IBM CLOUD VPC gen-2 Infrastructure.

Terraform Versions

Terraform v0.12. and terraform-provider-ibm version to ~> v1.7.2. Branch - master.

Running the configuration

terraform init
terraform plan

For apply phase

terraform apply

For destroy phase

terraform destroy

Dependencies

  • User needs to create Cloud Object Store instance before the Openshift cluster creation in VPC gen-2 infrastructure. COS instance created will be used to back up the internal registry in the OpenShift on VPC Gen 2 cluster.
  • User needs to create security group rule in the Default security group of VPC to enable port 30000 to 32767(NodePorts) to get the traffic into the cluster.

Notes

  • terraform-provider-ibm provides entitlement parameter in both ibm_container_vpc_cluster and ibm_container_vpc_worker_pool resources to reduce the OCP licence cost occuring in cluster creation.

Requirements

Name Version
terraform ~> v0.12

Providers

Name Version
ibm ~> v1.7.2

Configurations

The following variable needs to be set in the variables.tf

Inputs

Module - cos

Name Description Type Required
service_instance_name COS instance name string yes
plan COS service plan string yes

Module - cluster_and_workerpool

Name Description Type Required
flavor Cluster node Flavor string yes
kube_version Openshift cluster kube version string yes
worker_count Number of workers needs to be added in deafult workerpool int yes
region CLuster depolyment region string yes
resource_group Resouurce group name string yes
cluster_name Cluster name string yes
worker_pool_name Worker pool name string yes
worker_pool_workers_count Number of Worker nodes in the worker pool int yes
cos_instance_crn CRN id of the COS instance created string yes
entitlement Openshift Cluster entitlement string yes

Outputs

Module - cos

Name Description
cos_instance_crn CRN id of the COS instacne created

Module - cluster_and_workerpool

Name Description
cluster_id Id of the Cluster created

References

  1. Conainer Cluster Bluemix-go SDK

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.