Giter VIP home page Giter VIP logo

terraform_ansible_mesos_consul_cluster's Introduction

terraform_ansible_mesos_consul_cluster

Create a AWS HA Cluster with ansible, terraform , mesos, zk, consul, marathon , chronos and docker in CentOS 7

To Launch this cluster:

Pre Launch: Install terraform and ansible

  1. Create a terraform.tfvars file with the following attributes and save.
access_key = ""
secret_key = ""
ssh_key_name = ""
ssh_key = ""
  1. call terraform apply to launch the cluster .
  2. python tf-to-inventory.py will creare a host file for ansible to use.
  3. ansible-playbook -i hosts init.yml --private-key privatekeyfile

This will launch your cluster in AWS EC2. You could then browse the mesos, marathon, chronos url in the following port

https://ec2-xx-xxx-xxx-xxx.us-west-1.compute.amazonaws.com:5050
https://ec2-xx-xxx-xxx-xxx.us-west-1.compute.amazonaws.com:8080

For viewing the consul url you would have to create a tunnel to one of the masters:

ssh -i pathtoprivatekey -N -f -L 8500:localhost:8500 [email protected]

Once the tunnel is created you could view the consul ui from your laptop at localhost

You can now test adding a docker container to marathon using the information provided below. launch-docker-container-on-mesosphere

You can now check the status of the container from the consul UI.

##Component Installed:## ** Control Nodes ** ( Default 3 )

  • Mesos Master
  • Zookeeper
  • Consul Server
  • Consul UI
  • Marathon
  • Chronos

** Worker Nodes ** (Default 3)

  • Mesos Slave
  • Consul agent (client)
  • Docker engine

TO DO

  1. Add ngnix or haproxy for load balancing
  2. Add consul template to update load balancers
  3. Add ELK stack for docker aggregation logs
  4. Add security to harden the system

terraform_ansible_mesos_consul_cluster's People

Contributors

pkvenu 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.