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
1 answer
Configure Outlier detection for consul service mesh using nomad job
I am trying to configure Outlier Detection for a consul connect service mesh based on this documentation.
https://learn.hashicorp.com/tutorials/consul/service-mesh-circuit-breaking?in=consul/developer-mesh
The documentation shows that Outlier…

Jawahar
- 4,775
- 1
- 24
- 47
0
votes
1 answer
Nomad job stuck in pending state due to failed Consul KV resolution in template
Nomad v1.0.4, Consul v1.7.3
We have a Nomad job spec with several task groups. Each task group has a single task. Each task has the same template stanza that references several Consul KV paths like so:
{{ if keyExists "services/mysql/database" }}
…

Francis
- 183
- 2
- 9
0
votes
1 answer
consul servers without LAN every server connected through wan
im just getting started learning nomad and consul
i have several servers without a Local Area Network and they are connected through wam (which i think you mean by datacenters) every server is a datacenter
i found in the docs…

user3809210
- 39
- 4
0
votes
1 answer
Purpose of enabling ACL for Nomad clients
We have successfully enabled the ACL subsystem on our Nomad cluster by setting acl.enabled = true for all the Nomad servers on the cluster. It appears that the ACL works as expected without needing to set acl.enabled = true for the Nomad clients on…

Francis
- 183
- 2
- 9
0
votes
1 answer
How to manage networking and storage in HashiCorp nomad environment?
I'm curious how to manage networking and storage for containers (persistent data) managed by nomad and running on Docker hosts if one does not want to run k8s?

Jiri B
- 361
- 1
- 12
0
votes
1 answer
Consul configuration to automatically callback (on event) rest API
It is possible to configure Consul callback "POST" to a rest API every time that a service status is updated?
I've found "Watch" feature in documentation (https://www.consul.io/docs/dynamic-app-config/watches#http-endpoint), but seems like this…
0
votes
1 answer
Unable to bootstrap nomad cluster with multi-region setup "Error bootstrapping: Unexpected response code: 500 (No path to region)"
I am trying to setup Nomad ACL among a multi region and multi datacenter cluster,
In server stanza I added the below on all server nodes
server {
enabled = true
bootstrap_expect = 2
encrypt = "XXX-same-on-all-servers-XXX"
…

Unmil
- 21
- 3
0
votes
1 answer
Nomad Hashicorp basic networking beetween tasks
I'm starting to do some tests with nomad and I could use a bit on help on the easiest way to add networking to a group task. Basically my questions are:
Which is the easiest way to add internal networking between tasks?
and
Shouldn't the tasks on…

Gustavo Yance
- 101
- 2
- 12
0
votes
1 answer
Problem with nomad job deployment (raw_exec mode, v1.0.1)
Recent update from nomad v.0.9.6 to nomad v.1.01 breaks a job deployment.
Unfortunately I couldn't get any usable info from nomad agent about "pending or dead" status.
I also checked trace monitor from web-ui but without success.
Please could you…

Ivan Prostran
- 53
- 1
- 5
0
votes
1 answer
Nomad gitlab with consul
I try to have a gitlab job on my nomad cluster and to get it with a Consul's address.
My gitlab job:
job "gitlabce2" {
datacenters = ["dc1"] group "echo" {
count = 1
task "server" {
driver = "docker"
config {
…

thibd
- 61
- 1
- 5
0
votes
1 answer
Nomad Artifact download issue
Operating system
Windows 10
Working on nomad - 0.11.3
Nomad Java SDK - 0.11.3.0
Nomad runs as dev mode
I am trying to download git repo using nomad job. But getting the error after loading the repo in job's allocation folder.
Error ::
2 errors…

Bharat Vankar
- 317
- 2
- 13
0
votes
1 answer
How to run nomad raw_exec task as non-root user
It is possible to run processes for the Nomad raw_exec driver inside a task as non-root users? Ideally want to run nomad as root and then do drop privileges to run a command as the target user:
job "show_id_job" {
datacenters = ["dc1"]
priority…

josegts
- 107
- 1
- 13
0
votes
1 answer
Pass a readable JSON as string into Nomad Template
We are using nomad template to add environment variables for our nomad deployments.
template {
data = <

Zhen Liu
- 7,550
- 14
- 53
- 96
0
votes
1 answer
Can I run an integrated nomad/consul cluster with windows servers and linux clients?
I am migrating a standard all-linux nomad/consul cluster where the nomad/consul servers use almost no resources with our workloads, and spinning up dedicated linux VMs just for them in our new environment seems a bit wasteful, when the environment I…

SourceSimian
- 682
- 4
- 18
0
votes
2 answers
How to connect front-end application with database application in Hashicorp Nomad?
I am new to Hashicorp Nomad and trying to deploy one employee application, I have the code in kubernetes yaml file. Seperately I deployed frontend application with mongo database but I want to know how these two will contact each other because in…

Sufia Almas
- 23
- 4