Kubernetes setup using Terraform, Ansible and OpenStack.
Terraform deploy the environment including:
- Bastion
- K8s master
- K8s workers
- Openstack Load Balancer
- Required security groups
- Ansible inventory file
- Ansible config file
Ensure that you have the following installed:
- Terraform >= v1.1.5
- Ansible >= 2.9.27
- Locate the directory
/provisioning.
cd /provisioning
- Run Terraform and enter input when prompted.
terraform apply --auto-approve
Ensure that Terraform is finished and that the files hosts and ansible.cfg exists in the directory /configuration.
- Locate the directory
/configuration
cd /configuration
- Run Ansible playbook.
ansible-playbook -i hosts main.yaml

