kubernetes-cluster-ansible

Simple Kubernetes Cluster with Terraform and Ansible working with Dynamic Inventory

Stars
6
Committers
1

Complete Kubernete Cluster on AWS using Terraform and Ansible with Dynamic Inventory

Run tests

terraform plan

Terraform Provisioning on AWS

cd terraform/
terraform init
terraform apply

Configure cluster using Ansible Dynamic Inventory

Edit ansible.cfg

[defaults]
# Incluce ec2.py inventory
inventory = ./inventory/ec2.py
host_key_checking=false
deprecation_warnings=False
ansible_ssh_user=ubuntu
# Configure access key if necessary
ansible_ssh_private_key_file = "~/.ssh/id_rsa.pub"

Apply ansible-playbook

ansible-playbook playbooks/k8s-cluster-aws.yml

Deploy a Example Application for testing

Deployment release with roles/deployment-rolling

ansible-playbook playbooks/deploy.yml

Author

Matheus Fidelis

Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a if this project helped you!


This README was generated with by readme-md-generator