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.
Questions tagged [nomad]
189 questions
2
votes
1 answer
Is there any way to assign a task to a specific node with nomad?
I want to use Nomad in our project. But from the docs i could not get an answer, is there any proper way for assign a task to a specific node, ignoring scheduling. Is there such an opportunity?
Sorry for bad english.

Sergey Akulov
- 23
- 5
2
votes
0 answers
Microservices with dynamic ports
I have a series of microservices that I have been testing. Originally it was using Service Fabric however I have switched to using Consul, Fabio, Nomad which I like better.
In development on my machine things work well however I am running into some…

Telavian
- 3,752
- 6
- 36
- 60
2
votes
0 answers
Consul ACL and Nomad
I have the following issue and I am not sure if I am doing something not right or it is not working as expected.
I have a consul cluster with ACL enabled.
ACL default policy is set to DENY ("acl_default_policy": "deny",)
For now I am always using…

kereza
- 29
- 3
2
votes
1 answer
How should I run a mysql command with nomad and arguments?
I am interested in using nomad to initialize a mysql database on a windows server that is without docker. I tried to create a job using the "exec" driver, "mysql" command, and an args argument with the host, username, password, etc.
job…

Gavin Palmer
- 1,220
- 15
- 25
2
votes
1 answer
What is the difference between Apache Mesos and Nomad?
What is the difference between Apache Mesos and Nomad?
Nomad seems to claim that it can do resource management so I wonder how that is different from Apache Mesos?
Nomad also claims the following on their website
Nomad is architecturally much…

user1870400
- 6,028
- 13
- 54
- 115
2
votes
1 answer
Nomad : Unable to Run a python script
I am trying to submit the following job to my nomad server. The job basically uses a payload which is a python file from my localhost.
job "agent-collector-bot" {
datacenters = ["staging"]
type = "batch"
periodic {
cron =…

Nishant Singh
- 3,055
- 11
- 36
- 74
2
votes
1 answer
Multiple bash command in Nomad
I have an application that runs multiple Python scripts in order. I can run them in docker-compose as follow:
command: >
bash -c "python -m module_a &&
python -m module_b &&
python -m module_c"
Now I'm, scheduling the job in Nomad, and added…

seemvision
- 242
- 1
- 2
- 12
2
votes
1 answer
How to setup Nomad via Terraform
I am beginner and I have problem to find solution for Terraform and Nomad. I need run Nomad and hashi-ui for web management of Nomad. I try to setup and run Nomad server via terrafom. Hashi-ui I have like nomad job. Nomad server and Hashi-ui run…

JaMe
- 147
- 2
- 11
2
votes
1 answer
nomad: summary has failed=1 and complete=1 at the same time
I've run one dispatched job that exits with code 0. But in job summary I see job has failed and completed at the same time.
# nomad status run-packaging-a8173887-b37f-4273-9ad7-8691654bb5d4/dispatch-1503480991-c1bd3b3f
ID =…

dimcha
- 193
- 14
1
vote
1 answer
NOMAD error: No nodes were eligible for evaluation
My Nomad job is intermittently failing with the following error:
Placement Failure
Task Group "jobnamewashere":
No nodes were eligible for evaluation
I can find no further errors in the the nomad logs or anywhere else. Is there a way to find out…

ShayneBurgess
- 46
- 2
1
vote
0 answers
How to run Nomad NFS CSI plugin on the windows client node
I'm trying set up NFS CSI volume on nomad cluster. I successfully configured controller, node jobs and created new volume on Linux nodes. But I cant do it on Windows 2019 nodes.
I catch an error:
Driver Failure failed to create container: API error…

artem_d
- 11
- 2
1
vote
0 answers
Website unreachable whereas running on the public IP address
Can someone explain why I can't access my website running in a docker container thru nomad or what I'm doing wrong ? I'm beginner in system and networking.
I would like to make the container http listen on 127.0.0.1:8088 so that nginx can…

C Taque
- 997
- 2
- 15
- 31
1
vote
2 answers
How to break nomad job spec files into smaller manageable units
I have a job spec file that I am working to improve. It has about 3000 lines of HCL code and is difficult to maintain. I looked on HashiCorp's documentation and not seeing how to break a job spec file into multiple files, i.e, break out the tasks,…

Michael Amos
- 23
- 1
- 5
1
vote
1 answer
Nomad job: interpolating within Docker args
I'm writing a Thanos sidecar job for Prometheus. I have looked and can't figure out how to specify this argument in a config file, so my job looks like this. This is a templatefile for Terraform, so if you try to reference ${var}, Terraform tries…

Frank Siler
- 21
- 5
1
vote
0 answers
Filebeat autodiscover doesn't work with nomad
I'm having some trouble to configure autodiscover to run with nomad, to get allocation logs from the nomad agent and send to logstash. Everytime i got this message in filebeat logs.
"message":"Non-zero metrics in the last 30s"
but in nomad a have…

Natanael Weslley
- 333
- 1
- 2
- 9