https://github.com/ucs-compute-solutions/openshift43-installer
https://github.com/ucs-compute-solutions/openshift43-installer
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ucs-compute-solutions/openshift43-installer
- Owner: ucs-compute-solutions
- License: mit
- Created: 2020-05-18T14:52:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-29T18:09:33.000Z (almost 5 years ago)
- Last Synced: 2025-01-23T06:09:05.514Z (4 months ago)
- Language: HCL
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.html1. 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
```2. Run `openshift-install create ignition-configs`.
3. 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.4. Run `terraform init`.
5. Run `terraform apply -auto-approve`.
This will reserve IP addresses for the VMs.6. Run `openshift-install wait-for bootstrap-complete`. Wait for the bootstrapping to complete.
7. Run `terraform apply -auto-approve -var 'bootstrap_complete=true'`.
This will destroy the bootstrap VM.8. Run `openshift-install wait-for install-complete`. Wait for the cluster install to finish.
9. Enjoy your new OpenShift cluster.
10. Run `terraform destroy -auto-approve`.