We will now run Envoy as a system job in Nomad so it runs on all nodes in the Nomad cluster. Envoy will use envoy.json config file.
SSH into a Nomad Server
gcloud compute ssh nomad-1
cd envoy-consul-sds
nomad plan jobs/envoy.nomad
+ Job: "proxy"
+ Task Group: "proxy" (5 create)
+ Task: "envoy" (forces create)
Scheduler dry-run:
- All tasks successfully allocated.
Job Modify Index: 0
To submit the job with version verification run:
nomad run -check-index 0 jobs/envoy.nomad
When running the job with the check-index flag, the job will only be run if the
server side version matches the job modify index returned. If the index has
changed, another user has modified the job and the plan's results are
potentially invalid.
nomad run jobs/envoy.nomad
Check if the system job is up and running
nomad status proxy
Next Deploy Nginx Service