An open API service indexing awesome lists of open source software.

https://github.com/ucs-compute-solutions/openshift43-installer


https://github.com/ucs-compute-solutions/openshift43-installer

Last synced: 2 months ago
JSON representation

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.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
```

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`.