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
0
votes
2 answers
How to spread allocations evenly with spread stanza in nomad cluster (raw_exec driver)
In production environment (using 10 nodes cluster) nomad "bin packing algorithm" causes
big problems regarding system utilization.
The possible solution is to use the following rules/policies:
1. Distinct hosts
Use case: Mainly for multiple…

Ivan Prostran
- 53
- 1
- 5
0
votes
2 answers
Nomad job for existing containers
I'm fairly new to nomad. From a nomad job, I specified a docker image. From what I understand, nomad will download the image and create it's own container and maintain that container. Is there a way for nomad to maintain a container that's…

euphie
- 35
- 6
0
votes
2 answers
Change Nomad bind port
In HashiCorp Nomad, is it possible to specify the bind port for a Server and Client (e.g., from 464{6,7,8} to 600{6,7.8}?
The addresses stanza does not allow port specification, and neither does the -bind switch.
The advertise stanza does not change…

Elle Fie
- 681
- 6
- 21
0
votes
1 answer
Terminate job after certain time of inactivity with Nomad/Consul
Does Nomad in combination with Consul supports the termination of services after certain time of inactivity. Inactivity is defined here as no requests have been passed to the service. What would be the best approach to handle that outside the…

user3218367
- 21
- 1
- 4
0
votes
0 answers
Best way how to use Hashicorp Nomad/Consul for stateful-instances kind of workload
We have a use case where from a principal Nomad as cluster-scheduler, together with Consul fits very well, but we have some questions what would be the best approach to implement this:
A single instance of a service (Docker-instance, could also be a…

user3218367
- 21
- 1
- 4
0
votes
2 answers
Kafka Schema registry - Advertise dynamic port in container
As I understand, while using Schema registry confluent docker image ( not with zookeeper resiliency, but with kafka resiliency), we can advertise the hostname of the container to Kafka by using the SCHEMA_REGISTRY_HOST_NAME env variable.
If I try to…

Yannick
- 1,240
- 2
- 13
- 25
0
votes
1 answer
Parse value as int in HLC files
I am writing the template for a parametrized HashiCorp Nomad job. One of its parameters is priority, which is supposed to be an integer between 0 and 100.
Like other tools, Nomad supports variable interpolation, so that a variable can be defined at…

Alexander George
- 871
- 9
- 22
0
votes
1 answer
Unable to list Nomad job/task logs despite being able to submit Nomad job (using same token to authenticate)
I am using Vault for secrets management to generate short-lived Nomad ACL tokens with which my deployment agent (GoCD) can authenticate against Nomad:
vault read -field=secret_id nomad/creds/gocd
My ACL policy for gocd is:
namespace "default" {
…

Blair Nangle
- 1,221
- 12
- 18
0
votes
0 answers
Consul : pass values to nomad jobs
I have this consul kv
curl -XPUT http://localhost:8500/v1/kv/consul-server1/testData -d HELLO
how can i call/pass it in nomad job as env variable?
env { "data"= ? }

rkevx21
- 2,441
- 5
- 19
- 40
0
votes
1 answer
Nomad failing to pull from GCP container registery due to docker auth
This is my server config:
client {
enabled = true
servers = ["127.0.0.1:4647"]
}
I get an error of us.gcr.io/PROJECTID/IMAGE/NAME:latest: API error (404): {"message":"pull access denied for us.gcr.io/PROJECTID/IMAGE/NAME, repository does…

Chris Stryczynski
- 30,145
- 48
- 175
- 286
0
votes
1 answer
Why is nomad listening on port 80?
Why is Nomad listening on port 80?
How can I change this to listen to another port?
I can't seem to find anything on Google relating to this.
Edit: Opps I'm an idiot it wasn't Nomad that was listening on port 80... Can't delete this question either…

Chris Stryczynski
- 30,145
- 48
- 175
- 286
0
votes
0 answers
Nomad job pending due to Docker i/o timeout on 3/4 nodes?
Having the issue of my jobs ending up in an eternal pending sate due to the fact that docker pull of the container I want is hitting i/o timeouts. I've read several times about changing the DNS in order to fix this, but it seems kinda hokey, I don't…

ehime
- 8,025
- 14
- 51
- 110
0
votes
1 answer
Want to run Nomad agent as a service
I want to run nomad agent service in windows server 2012 R2.
I used sc.exe command which looked like this:
sc.exe create nomadservice binpath="nomad.exe agent -config=C:/nomad/client.hcl"
This created a service though it isn't started. I tried…

Lakshit Garg
- 1
- 1
0
votes
0 answers
Scheduling Azure container instances on demand
I have tasks running on VM and the following sequence of events. For scaling purposes I need to be able to run operations on demand and possibly in parallel.
A simple sequence of events
1. Execute task
2. Task create dataset file.
3. Startup…

littest
- 11
- 1
0
votes
1 answer
Nomad task getting killed
I have two tasks in task group
1) a db task to bring up a db and
2) the app that needs the db to be up.
Both start in parallel and the db tasks takes a lil bit time but by then the app recognizes that db is not up and kills the db task. Any…

Julie
- 179
- 2
- 13