Today we will take a look at OCP4 UPI Installation on KVM.
Basically, I used this official doc from Red Hat. Especially bare metal part. So although I use KVM, it is almost the same as bare metal.
To use UPI method, we need to setup a lot of stuff such as dns,network,load balancer, matchbox and so on. You can config them all maually but tn order to explain this topic properly, I've developed ansible and terraform script. From this video, I will explain pre-requisites and how you should config it by manual or by automation.
10. Flows
There are many ansible and terraform in places.
However, it is just tools so you can configure everything
manually.
To use this scripts, you can do 2 ways: manual, jkit commands.
11. Full Flows - Init(Initialize)
1. Update config file
2. Create config files (prep/ansible/tasks/generate_config_files.yml)
a. ansible inventory
b. terraform.tfvars
c. connection.tf
d. bootp.xsl
3. Cloud-init (prep/ansible/tasks/cloud_init.yml)
a. user-data
b. meta-data
12. Full Flows - Prep(1)
1. Install packages (prep/ansible/tasks/install_packages.yml)
a. docker
b. httpd
2. DNS (prep/ansible/tasks/dns_config.yml)
3. OCP4 VM Config(prep/ansible/tasks/ocp_vm_config.yml)
a. Create install-config.yaml
b. Generate ignition files
c. Config HTTPD server
4. Deploy Load Balancer
a. terraform init/get/apply
13. Full Flows - Prep(2)
1. Deploy Load Balancer(terraform init/get/apply)
a. Create network
i. Matchbox Server (prep/ansible/tasks/matchbox_config.yml)
1. Generate certs
2. Deploy matchbox container
3. Create matchbox module for matchbox configuration
ii. Config MatchBox
1. groups
2. profiles
3. ignition
iii. OCP module for creating OCP VMs
b. Config HAproxy
14. Full Flows - OCP
1. Deploy OCP4(terraform init/get/apply)
2. Wait for bootstrap-complete
3. Patch imageregistry storage to emptyDir
4. Remove bootstrap from HAproxy backend pool
5. Wait for install-complete