Questions tagged [nomad]

Questions about Hashicorp Nomad which is a simple and flexible scheduler and orchestrator to deploy and manage containers and non-containerized applications across on-premises and clouds at scale.

Homepage

189 questions
0
votes
0 answers

How to get Job version from allocation JSON that has no job information?

I have a persistent Nomad database of jobs, allocations and evaluations (with my own cleanup settings, not in the scope of the question). I take Nomad event stream https://developer.hashicorp.com/nomad/api-docs/events and listen to allocations,…
KamilCuk
  • 120,984
  • 8
  • 59
  • 111
0
votes
0 answers

What is the difference in Job between JobModifyIndex, ModifyIndex and Version?

In the Nomad Job JSON specification we can find the following fields, from https://developer.hashicorp.com/nomad/api-docs/jobs#read-job : "JobModifyIndex": 637478, "ModifyIndex": 637480, "Version": 1, What is "JobModifyIndex"? What is…
KamilCuk
  • 120,984
  • 8
  • 59
  • 111
0
votes
1 answer

Use Nomad to build and push docker image

Currently I use nomad with the docker driver for services and batch jobs. I have a project which I can't simply use github/gitlab/circleci/etc to build the image because in order for the build to succeed it requires access to network resources that…
Zia
  • 2,735
  • 3
  • 30
  • 27
0
votes
1 answer

Mongodb TLS encryption

I have implemented MongoDB TLS encryption on the server side (using self signed certs), with the following configuration. systemLog: destination: file path: "/var/log/mongodb/mongod.log" logAppend: true storage: dbPath:…
Ajai
  • 25
  • 5
0
votes
0 answers

Nomad Syntax highlighting

Does anyone know if it's possible to have syntax highlighting in Nomad stdout/stderr? For example, running echo "ERROR" locally will return ERROR displayed in red. Can I do something similar in Nomad? Maybe leverage Go Lang somehow?
Stacker
  • 137
  • 3
  • 12
0
votes
2 answers

Nomad and Waypoint cannot launch more than 2 jobs

I'am currently tryng to deploy several db on Nomad cluster. Test - dev - qa - ppd I'am using waypoint with var files to automatise deploy. I have strange issue, I cannot launch more than 2 db job, when I launch new db job the older 2 jobs disappear…
0
votes
1 answer

connect db and back using service name

I try to use service name to connect my nomad job Postgresql and the app. Using agent node where the job is running works fine but with my job.service.consul do not work. As decribe in application.properties using ip or host works but service name…
0
votes
1 answer

nomad multiline environment variable

Is there a way to have a multiline environment variable in a nomad template? Trying it directly gives an error about not being able to find the closing quote. In the docs the only function that's mentioned is | toJSON, but that translates the line…
Tim Tisdall
  • 9,914
  • 3
  • 52
  • 82
0
votes
1 answer

Port collision error even though no jobs running on Hashicorp Nomad client

As part of upgrading the Hashicorp Nomad cluster I started upgrading worker nodes one by one. I thought I will upgrade the master nodes later. I upgraded one of the Hashicorp Nomad node from 1.1.2 to 1.3.1. The same job that was getting comfortably…
Shinto C V
  • 714
  • 1
  • 9
  • 16
0
votes
2 answers

Constraint missing devices filtered 1 node, nomad job

I am trying to add GPU resources to nomad and I am having the following error my job description is job "test" { datacenters = ["dc1"] group "echo" { count = 1 task "server" { driver = "docker" config { image =…
Israel-abebe
  • 538
  • 1
  • 4
  • 20
0
votes
1 answer

Is there additional setup for connecting Nomad and Jenkins?

I'm interested in setting up Jenkins to test and launch my applications on Nomad and am trying to connect the two using https://github.com/jenkinsci/nomad-plugin I've installed and been able to connect to and validate the connection to Nomad from…
Taylor F
  • 89
  • 1
  • 7
0
votes
1 answer

How to update nomad job from one namespace to another?

I would like to change namespace of a job in Nomad cluster from one namespaceA to namespaceB. When I change a namespace in a job UI of Nomad, I notice that it creates 2 jobs in namespaceA and namespaceB. How can I just keep one namespace?
Adrien Arcuri
  • 1,962
  • 1
  • 16
  • 30
0
votes
1 answer

Vault kv secrets and nomad jobs

I am creating a nomad job that accesses vault kv secrets. At the moment I managed to create the policies, and a role, but I can't make it consume the secret. This would be my nomad job: job "http-echo" { datacenters = ["ikerdc2"] group "echo"…
iker lasaga
  • 330
  • 1
  • 3
  • 18
0
votes
1 answer

How to make 127.0.0.1:4646 accessible in vagrant?

When I tried to build a vagrant in docker by command "vagrant up", below error message displayed: default: Error submitting job: Put http://127.0.0.1:4646/v1/jobs?region=global: dial tcp 127.0.0.1:4646: connect: connection refused The SSH command…
0
votes
2 answers

Interpolate nomad local variables in external file

In my job definition, I have the following template: variables { environment = "staging" } ... task "server" { template { data = file("vars.env") destination = "secrets/file.env" env = true …
gcstr
  • 1,466
  • 1
  • 21
  • 45