Skip to content

ucs-compute-solutions/openshift43-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform OpenShift Container Platform 4 Installer for Cisco UPI

Terraform Installater for OpenShift Container Platform 4 on Cisco User Provisioned Infrastructure

Pre-Requisites

  • Cisco Converged Infrastructure deployed per Cisco's design guidelines.
  • VMware Infrastructure deployed on Cisco Converged Infrastructiure
  • terraform 0.11

OCP 4 Cluster Installation

Refer to specific Converged Infrastructure CVD that you are intending to use as User Provisioned Infrastructure for OpenShift installation. https://www.cisco.com/c/en/us/solutions/design-zone.html

  1. Create an install-config.yaml.
apiVersion: v1
baseDomain: devcluster.cisco-ci.com
metadata:
  name: mstaeble
networking:
  machineNetwork:
  - cidr: "x.x.x.x/26"
platform:
  vsphere:
    vCenter: vcsa.devcluster.cisco-ci.com
    username: YOUR_VSPHERE_USER
    password: YOUR_VSPHERE_PASSWORD
    datacenter: dc1
    defaultDatastore: Infra_datastore1
pullSecret: YOUR_PULL_SECRET
sshKey: YOUR_SSH_KEY
  1. Run openshift-install create ignition-configs.

  2. Fill out a terraform.tfvars file with the ignition configs generated. There is an example terraform.tfvars file in this directory named terraform.tfvars.example. At a minimum, you need to set values for the following variables.

  • cluster_id
  • cluster_domain
  • vsphere_user
  • vsphere_password
  • ipam_token
  • bootstrap_ignition_url
  • control_plane_ignition
  • compute_ignition The bootstrap ignition config must be placed in a location that will be accessible by the bootstrap machine.
  1. Run terraform init.

  2. Run terraform apply -auto-approve. This will reserve IP addresses for the VMs.

  3. Run openshift-install wait-for bootstrap-complete. Wait for the bootstrapping to complete.

  4. Run terraform apply -auto-approve -var 'bootstrap_complete=true'. This will destroy the bootstrap VM.

  5. Run openshift-install wait-for install-complete. Wait for the cluster install to finish.

  6. Enjoy your new OpenShift cluster.

  7. Run terraform destroy -auto-approve.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published