nomad-demo
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
- 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 - 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
- if you have tmux:
- in a shell (as admin on windows), run this:
You can now run jobs:export NOMAD_ADDR="http://$(cat server_ip):4646" nomad statusnomad job run rabbit/rabbit.nomad
Good Luck!