Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.09 KB

deploy-envoy-system-job.md

File metadata and controls

48 lines (36 loc) · 1.09 KB

Deploy Envoy System Job

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.

Prerequisite

SSH into a Nomad Server

gcloud compute ssh nomad-1

Deploy Envoy

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