Git Product home page Git Product logo

aws-kubernetes-terraform-ansible's Introduction

AWS deployment

This directory contains the DAVe deployment into Kubernetes cluster running on Amazon AWS. The deployment is using Terraform to deploy the infrastructure andf Ansible to setup the Kubernetes on top of it. It is heavily inspired by https://opencredo.com/kubernetes-aws-terraform-ansible-1/.

TODOs

See the project dashboard.

Installation

  • Create a copy of the example.tfvars file and change the variables according to your needs. Don't forget to change the passwords!
  • Go to the terraform directory and run:
terraform apply --var-file=my-var-file.tfvars
  • After Terraform completes, move to the ansible directory
  • To install the Kubernetes components on the EC2 hosts, run:
ansible-playbook infra.yaml
  • To activate the kubectl command line tool on your localhost and on the jumphost, run:
ansible-playbook kubectl.yaml
  • Next, install the DNS server with:
ansible-playbook kubernetes-dns.yaml
  • Install the Dashboard with:
ansible-playbook kubernetes-dashboard.yaml
  • To enable automatic storage provisioning (needed by logging and monitoring in next steps), create the storage class:
ansible-playbook kubernetes-storage.yaml
  • Install the network routing with:
ansible-playbook kubernetes-routing.yaml
  • (optional) Install the Monitoring (Heapster, InfluxDB, Grafana) with:
ansible-playbook monitoring.yaml
  • (optional) Install the Logging (ElasticSearch, Kibana) with:
ansible-playbook logging.yaml

Storing remote state in Amazon S3

The Terraform state file is important for any future updates to the Terraform managed infrastructure. You can configure Terraform to store the state remotely, for example in Amazon S3 using the remote option, e.g.:

terraform remote config -backend=s3 -backend-config="bucket=my-cluster-terraform-state" -backend-config="key=terraform.tfstate" -backend-config="region=eu-central-1"

aws-kubernetes-terraform-ansible's People

Contributors

scholzj avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.