Skip to content

Kubernetes the hard way using Terraform and Ansible

Notifications You must be signed in to change notification settings

Jibinxavier/GCPKubeDeploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCPKubeDeploy

This an attempt at building the a 3 worker and 3 controller environment based on https://github.com/kelseyhightower/kubernetes-the-hard-way, using Terraform and Ansible

Usage

  1. update "credentials" and "project"

  2. cd infrastructure

  3. terraform plan

  4. terraform apply

  5. Use python script in bootstrap_hosts to initialise the Ansible host file cd .. && python populate_hosts.py --tf_state infrastructure/terraform.tfstate --ansible_inv ./inventories/production/hosts.yaml --ssh_dir ./ssh_keys --json_v roles/configGeneration/files/

  6. Use host file to setup bastion server and deploy other components from there ansible-playbook bootstrap-automation-serv.yml --inventory=inventories

  7. SSH into bastion server ssh -i ssh_keys/bastion bastion@<ip>

  8. cd /automation

  9. ansible-playbook tlscertGenAndTransfer.yml --inventory=inventories

  10. ansible-playbook configure-cluster.yml --inventory=inventories

About

Kubernetes the hard way using Terraform and Ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published