GithubHelp home page GithubHelp logo

fovea-marathon-base's Introduction

Fovea marathon base

Ansible playbooks to initialize a bare mesos/marathon cluster

Getting started

Run a test cluster with Vagrant.

(cd inventory/vagrant; vagrant up)
ansible-playbook -i inventory/vagrant/hosts platform/full.yml

Specific of this install

  • The cluster can be composed of any machines on the internet, they will be connected together by a tinc virtual private network (VPN).
  • Each node have docker installed. Everything then runs inside docker containers.

Configuration

Your inventory file should list the following groups:

  • mesos-masters
    • typically 3 hosts.
    • they'll run mesos masters, zookeeper and marathon.
  • mesos-slaves
    • they'll run mesos agents.
    • can be on the same hosts as mesos-masters.
  • marathon-lb-external
    • public load-balancers
  • mesos-dns
    • DNS server for service discovery (for apps with static ports)

Following variables have to be defined:

  • cluster_name a string naming this cluster
  • zk_hosts comma separated list of hostname:port where zookeeper is running
    • usually ":2181,:2181,:2181"
    • (replace by the actual hostnames)
  • mesos_masters space separated list of mesos masters hostnames
    • usually " "
  • docker_bip binding interface for docker network
    • usually "172.17.0.1"
  • ubuntu_version version of ubuntu running on machines
    • eg: ubuntu-trusty or ubuntu-xenial
  • ssl_certs link to SSL certificates used by the load-balancer
    • concatenated PEM certificate and private key (see haproxy doc)

See inventory/vagrant/ for an example setup.

Load Balancers

  • platorm/marathon-lb-external will expose apps that have the HAPROXY_GROUP=external label.

fovea-marathon-base's People

Contributors

j3k0 avatar

Watchers

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