nomad-demo icon indicating copy to clipboard operation
nomad-demo copied to clipboard

Nomad Demo

Repository to go with my talk on Nomad: Kubernetes without the Complexity.

Tooling

Required:

  • Hyper-v - You can adapt the Vagrantfiles to other virtualisation tools if you want
  • Vagrant - for the VMs
  • Nomad - to interact with the cluster
  • Bash - gitbash is fine

Optionals:

  • Consul - run a consul node on your local machine to host other services
  • Tmux - just makes running one of the scripts easier

Setup

  1. start the cluster
    ./scripts/init.sh   # or make sure there is a host_ip file at repo root with your host machine ip in it
    vagrant up
    
  2. Run all the demo junk
    • if you have tmux:
      ./scripts/demo.sh
      
    • if you don't, run a separate shell for each of these:
      • ./scripts/consul.sh
      • ./scripts/host.sh
  3. in a shell (as admin on windows), run this:
    export NOMAD_ADDR="http://$(cat server_ip):4646"
    nomad status
    
    You can now run jobs:
    nomad job run rabbit/rabbit.nomad
    

Good Luck!