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
votes
2 answers
What capability does a policy need in order to start jobs in Nomad?
With Hashicorp's Nomad, based on the documentation in the Namespace Rules section of the ACL Policy Specification documentation, I've configured a policy with these capabilities:
namespace "default" {
policy = "read"
capabilities =…

HeatZync
- 160
- 1
- 10
-1
votes
1 answer
How to set Kernel parameters using sysctl for a Hashicorp Nomad job
The docs says I can set the kernel parameters using sysctl for a docker task like so:
config {
sysctl = {
"net.core.somaxconn" = "16384"
}
}
This indeed works. But when I tried,
sysctl = {
"net.core.somaxconn" = "16384"
…

Shinto C V
- 714
- 1
- 9
- 16
-1
votes
2 answers
Nomad job using exec fails when running any bash command
I have tried everything and I just can’t get an exec type job to run. I tried it on 3 different clusters and it fails on all.
The job prunes docker containers and just runs docker system prune -a.
This is the config section:
driver = "exec"
config…

user3689158
- 23
- 8
-1
votes
1 answer
Zero-downtime upgrade for HashiCorp Nomad server or client
What is the recommended methodology to upgrade a HashiCorp Nomad server or client on CentOS Linux 7.5 without downtime?
I'm trying to migrate from v0.10.4 to the just-released v0.11.
Is there a way to perform a lazy-upgrade that will defer/wait for…

Elle Fie
- 681
- 6
- 21
-1
votes
1 answer
Nomad Job : Failed to place all allocations
I need some help, I have 3 nomad as servers and client. I want to run a Job (Nginx) in 2 instances but it gives me this error. How can I fixed this?
Scheduler dry-run:
- WARNING: Failed to place all allocations.
Task Group "nginx" (failed to…

rkevx21
- 2,441
- 5
- 19
- 40
-1
votes
1 answer
Nomad understand scheduler node selection
I have a 3 node test cluster and several jobs (simple config, no constraints, java services). My problem is every time I start a job it will be started on the first node. If I increase the count=2 and add a distinct host constraint there are also…

imehl
- 789
- 1
- 9
- 25
-2
votes
1 answer
Nomad : Error getting job struct: Error parsing job file
I'm trying to run the command on the Nomad file:
nomad job run -address="http://10.10.5.11:4646" file.hcl
And I get an error:
Error getting job struct: Error parsing job file from file.hcl: error parsing 'job': 3 errors occurred:
* group:…

milenao
- 707
- 1
- 6
- 8
-2
votes
1 answer
How to use for_each loop to cycle kv pairs in terraform templates?
We have a Hashistack infrastructure: Nomad, Vault, Consul...
I want to deploy an app with a Terraform. The app has it's variables in Vault's kv store.
I have a problem understanding how to make key-value pairs from vault become environment variables…

Gutleib
- 1
-3
votes
2 answers
Is there a way to ignore test errors coming from third party packages during unit tests?
My tests are failing due to a 3rd party error that is irrelevant to the tests themselves. Basically some testserver I have to use fails to shutdown on Windows OS but actually runs fine.
I need to ignore the errors it generates, but they are in the…

mechanicum
- 699
- 3
- 14
- 25