Initial cluster deployment using site.yml
Once you have configured all of the variables and vault parameters to match your environment, run the
playbook site.yml to perform the initial cluster deployment:
$ cd ~/OpenShift-on-SimpliVity
$ ansible-playbook -i hosts site.yml --vault-password-file .vault_pass
site.yml is a wrapper for a number of playblooks that perform different functions:
ansible-playbook -i hosts playbooks/prepare.yml
ansible-playbook -i hosts playbooks/provision.yml
ansible-playbook -i hosts playbooks/configure.yml
ansible-playbook -i hosts playbooks/poweron.yml
ansible-playbook -i hosts playbooks/finish.yml
Prepare
The preparation stage includes the following tasks:
- Install client tools
- Create support and cluster folders in vCenter to house the VMs
- Populate
/etc/hostsfile on the Ansible controller node - Configure and start an HTTP server on Ansible controller node
- Set up custom firewall rules
Provision
The provision stage includes the following tasks:
- Prepare OCP Ignition data files
- Provision the bootstrap, master and CoreOS worker nodes
- Provision and power on supporting nodes, including DNS/DHCP, load balancers and NFS
Configure
The configuration phase consists of:
- Configuring anti-affinity DRS rules
- Configuring supporting nodes including DNS/DHCP, load balancer and NFS nodes.
- Configure VM disks and RedHat subscription.
Power on
This stage powers on any nodes that have not already been started. It waits for the OpenShift API server port on the master nodes to be ready and checks that access to port 22 is available on other nodes.
Finish
A number of tasks are performed after powering on the nodes to ensure that the cluster has been successfully deployed:
- Wait until the OpenShift installer reports that bootstrap is complete
- Approve any pending Certificate Signing Requests (CSR)
- Wait for the image registry to be ready and configure persistent volumes for the NFS server
- Verify that all the cluster operators are available
- Wait for the OCP cluster to report installation is complete