Skip to content

vmck/cluster

 
 

Repository files navigation

Cluster - spin up Consul + Vault + Nomad + friends

Build Status

This script installs and configures Consul, Vault and Nomad. After those are up, we're running dnsmasq to forward Consul's DNS, Prometheus to collect Nomad stats, and Grafana to display them in a nice dashboard. It also runs a local Docker registry to cache images. It's designed to be easy to use on a fresh Linux machine, therefore it's somewhat opinionated.

Quick start

Install and have Docker up and running. Follow the instructions at get.docker.com.

Clone this repository, then:

cd /opt/cluster
cp examples/cluster.ini .
./bin/docker.sh
docker exec cluster ./cluster.py supervisorctl -- tail -f start

Wait a minute and visit:

If fabio has been enabled in cluster.ini, visit:

In case of panic or just to stop it, docker stop cluster will make it all go away.

Running a specific version

To run a tagged version (e.g. v0.9.0) of cluster:

git checkout v0.9.0
./bin/docker.sh --image liquidinvestigations/cluster:0.9.0

Running a command inside a task container

Use cluster.py nomad-exec JOB:TASK COMMAND... to execute a command inside a container. stdin and stdout can be used to exchange data. The command uses nomad alloc exec.

More documentation

About

Cluster - spin up Consul + Vault + Nomad + friends

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 50.4%
  • HCL 29.6%
  • Shell 18.4%
  • Dockerfile 1.6%