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
1
vote
3 answers
How to connect to the nomad/consul UI with tls enabled?
I'm now researching the Hashistack and trying to deploy pet microservice-based project on it. I deployed Nomad and Consul clusters with Ansible roles on bare metal nodes:
https://github.com/ansible-community/ansible-consul.git…

Michael
- 21
- 4
1
vote
1 answer
how can I connect two docker containers with nomad
I built two docker applications that communicate with each other using the docker network, but when I tried to run those applications using nomad. The problem within nomad is that the container name is not configurable and gives the container a…

Samaheen
- 21
- 3
1
vote
1 answer
Unable to access services running on Hashicorp Nomad via browser
I started two Nomad jobs, one for PostgreSQL and another on for pgAdmin on the Nomad dev on my MacOS. The jobspecs are these:
## postgres.nomad
job "postgres" {
datacenters = ["dc1"]
type = "service"
group "postgres" {
count = 1
task…

Pedro Neri
- 395
- 1
- 5
- 17
1
vote
0 answers
How to resolve illegal character code U+0003 in nomad job
I am trying to run a nomad job that does a simple task of downloading a binary file from a remote repository. On running the job the nomad agent throws the error
Failed Artifact Download failed to download…

kimathie
- 384
- 4
- 18
1
vote
1 answer
Is timestamp function not supported in HCL2?
I am trying to get the current day and put in a local
locals {
current_day = formatdate("DD/MM/YYYY", timestamp())
}
but a I get this error Call to unknown function; There is no function named "timestamp".
Is timestamp function not supported in…

Kais
- 99
- 12
1
vote
0 answers
Firecracker with Nomad or Vagrant?
I have to configure firecracker on ubuntu server.
I am little bit confuse like it should be installed standalone ( https://medium.com/@s8sg/quick-start-with-firecracker-and-firectl-in-ubuntu-f58aeedae04b ) ? OR inside any orchestration tools like…

DanishDevops
- 21
- 3
1
vote
2 answers
Can't find Nomad clients in the Nomad UI
Can't find Nomad client, but I can see all servers and I also can find the clients in Consul.
Nomad config
data_dir = "/opt/nomad/data"
server {
enabled = true
bootstrap_expect = 3
retry_join = ["provider=aws tag_key=Function…

Kingindanord
- 1,754
- 2
- 19
- 48
1
vote
3 answers
Nomad and consul setup
Should I run consul slaves alongside nomad slaves or inside them?
The later might not make sense at all but I'm asking it just in case.
I brought my own nomad cluster up with consul slaves running alongside nomad slaves (inside worker nodes), my…

Mahdi Amini
- 402
- 1
- 3
- 17
1
vote
1 answer
cannot access nomad docker task via local ip:port
with following job config. curl NOMAD_IP_http:NOMAD_PORT_http cannot access http-echo service.
there is no listenig port on localhost for incomming request.
why and how to access the http-echo service
job "job" {
datacenters = ["dc1"]
group…

eins
- 43
- 1
- 6
1
vote
1 answer
Running a nomad job for a docker container that Traefik can find
I'm currently running a docker container with Traefik as the load balancer using the following docker-compose file:
services:
loris:
image: bdlss/loris-grok-docker
labels:
- traefik.http.routers.loris.rule=Host(`loris.my_domain`)
…

Jeff
- 3,943
- 8
- 45
- 68
1
vote
1 answer
Hashicorp Nomad and Consul API - Get all services addresses
I'm building a self-configured proxy for my Nomad cluster. For that, I need to retrieve all jobs running in the cluster, and their allocated IP's and port's for every container running. This way I can autogenerate the reverse proxy configuration,…

Cristian
- 370
- 3
- 8
1
vote
1 answer
How to configure Nomad job for Selenium Grid
I'm trying to setup a Selenium Grid in Hashicorp Nomad but I don't know how to make the networking work.
What I want is to have one selenium-hub and 8 chrome-nodes. I found that I can only have multiple allocations of the node-task if I put the…

Reikhard
- 21
- 4
1
vote
0 answers
Nomad Runtime environment and value interpolation failed to load environment value
I was creating a Nomad job for airflow worker node using docker driver and trying to read from the env about the IP address or hostname of the current nomad client.
I first tried in task template, HOST_NAME="{{ env "attr.unique.hostname" }}" works…

Richard
- 83
- 2
- 8
1
vote
1 answer
Nomad spread after client recovery
I'm trying to understand how Nomad spread works with client failues.
In Nomad jobs, you can define a spread stanza, such that a job's instances get spread actoss all client.
Here are the…

summerbulb
- 5,709
- 8
- 37
- 83
1
vote
0 answers
How to port forward Nomad task from Consul?
I want to debug a container on my host machine instead of from within the container (so I have stuff like curl and other software). K8S has the functionality to port-forward a container, how is it achievable with consul?

Alan Sereb
- 2,358
- 2
- 17
- 31