Skip to content

dbennerIBM/terraform-openshift3-ibmcloud-vpc-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-openshift3-ibmcloud-vpc-example

End to end example of deploying Openshift 3 on IBM Cloud VPC. In this example we use the following sub-modules:

Before deploying, you will need to set the following environment variables:

export IC_API_KEY

export TF_VAR_rhn_username=<redhat username>
export TF_VAR_rhn_password=<redhat password>

export CLOUDFLARE_TOKEN=<cloudflare token>
export CLOUDFLARE_EMAIL=<cloudflare email>

Use the following commands to deploy:

terraform init
terraform apply 

Example

Example terraform.tfvars file. We provision an non-HA Openshift cluster.

# MUST consist of only lower case alphanumeric characters and '-'
deployment = "ocp-test"

# it's best to use a service account for these
image_registry_username = "<service_acct_username>"
image_registry_password = "<service_acct_token>"

rhn_poolid = "<poolid>"

# to stand up the registry a vssphere block volume
storage_class = "glusterfs" 

# manually added to DNS, the app_cname is a wildcard domain pointing at the infra node
master_cname = "ocp-master.my-private-domain.local"
app_cname = "ocp-app.my-private-domain.local"

About

End-to-end example to deploy Openshift 3.x to IBM Cloud VPC gen 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%