Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Demo of setting up a kubernetes cluster on OpenvCloud using terraform, ansible and kubespray

Notifications You must be signed in to change notification settings

gig-tech/demo-terraform-ansible-kubespray

Repository files navigation

Demo of Terraform, Ansible and Kubespray integration

With the code in this repository you can deploy kubernetes cluster on top of GIG Edge Cloud

This consists of

  • terraform configuration to manage the cloudspaces and create the virtual machines
  • ansible configuration for the virtual machines
  • kubespray configuration to deploy the kubernetes cluster
  • ansible playbook to install persistent volume for the kubernetes cluster

** ansible ( >= 2.8.0) ansible installation guide

Using this repository

Import submodule:

git config --global status.submoduleSummary true
git submodule init
git submodule update

Requirements:

Before starting update Terraform configuration in config.env file with your own data. You can also add Terraform variables to terraform/terraform.tfvars. It is important that server_url, client_jwt and account are given as environmental variables, as they are used in further steps.

Provision with terraform

Run ./1_terraform-provision.sh

Provision with kubespray

Run ./2_kubespray.sh

Install OVC SCI driver on the Kubernetes cluster

Run ./3_sci_driver.sh

Tear down everything

Run ./9_destroy.sh

About

Demo of setting up a kubernetes cluster on OpenvCloud using terraform, ansible and kubespray

Resources

Stars

Watchers

Forks

Packages

No packages published