Skip to content

lennca/k8s-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

K8s-cluster in OpenStack

Kubernetes setup using Terraform, Ansible and OpenStack.

About

Terraform deploy the environment including:

  • Bastion
  • K8s master
  • K8s workers
  • Openstack Load Balancer
  • Required security groups
  • Ansible inventory file
  • Ansible config file

Bastion Overview

Bastion overview

Terraform Openstack Environment Overview

Terraform Openstack environment overview

Getting Started

Prerequisites

Ensure that you have the following installed:

  • Terraform >= v1.1.5
  • Ansible >= 2.9.27

Run Terraform

  1. Locate the directory /provisioning.
  cd /provisioning
  1. Run Terraform and enter input when prompted.
Note: Enter yes to run Ansible automatically when prompted for.
  terraform apply --auto-approve

Run Ansible manually

Ensure that Terraform is finished and that the files hosts and ansible.cfg exists in the directory /configuration.

  1. Locate the directory /configuration
  cd /configuration
  1. Run Ansible playbook.
  ansible-playbook -i hosts main.yaml

Articles/documentation worth reading:

Terraform

Ansible

Others

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages