Questions tagged [nomad]

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.

Homepage

189 questions
23
votes
6 answers

Converting map to string in Go

I am trying to find the best way to convert map[string]string to type string. I tried converting to JSON with marshalling to keep the format and then converting back to a string, but this was not successful. More specifically, I am trying to convert…
ecl0
  • 385
  • 1
  • 3
  • 13
9
votes
1 answer

Nomad and port mapping

Nomad has three different ways to map ports: Network stanza under group level Network stanza under config -> resources level port_map stanza under config level What is the difference and when I should use which?
Alan Sereb
  • 2,358
  • 2
  • 17
  • 31
9
votes
0 answers

Is it possible to add firewall exceptions to a .Net core application?

I have some .Net core microservices which I am currently running with dotnet xyz.dll. They currently run and work fine however in order for one to talk to the other I of course need firewall exceptions. Without thinking much I used a script to use…
Telavian
  • 3,752
  • 6
  • 36
  • 60
8
votes
6 answers

How can nomad' job from local docker images

nomad docker image will be fetched from Docker Hub.But I have want use some local images.How can I use theme.(I dont want to use private repo) Example I want to use local image test > docker images REPOSITORY TAG …
zhangslob
  • 189
  • 1
  • 2
  • 8
7
votes
4 answers

How would you use Hashicorp's Nomad 'template stanza' to generate an nginx config file through the Nomad job file?

With the assumption that Consul and Nomad has been configured to run on a pool of resource. How would you rendered a template file for the sole purpose of generating e.g. an Nginx 'default.conf' file. Using the template stanza configuration below,…
dev_a.y
  • 133
  • 2
  • 7
6
votes
1 answer

remove dead jobs from nomad status

I was running a cron (periodic) job through nomad which ran every 30 sec, the job does nothing but just echo "some string" and hence ends immediately when I do nomad status I get all the dead jobs also-- the jobs that have finished executing,…
coda
  • 2,188
  • 2
  • 22
  • 26
5
votes
1 answer

KRaft - unable to register with the controller quorum

I am using Apache Kafka V3.1 in docker and trying to orchestrate it with Nomad. I am facing a problem creating a distributed cluster. the goal is to have 3 broker/controller nodes on 3 EC2 Instances :~$ nslookup broker.service.brain.consul Server: …
Kingindanord
  • 1,754
  • 2
  • 19
  • 48
5
votes
1 answer

Error making API request when using Vault secrets

I am following this tutorial but I don't know why I am getting these permissions errors when I run some vault commands vault kv put secret/hello foo=world Error making API request. URL: GET…
iker lasaga
  • 330
  • 1
  • 3
  • 18
5
votes
2 answers

How to keep nomad task from exiting?

In docker we have -t flag to keep containers from exiting. How can achieve the same thing in nomad? I want to debug if I can ping one service from another, so I just want a container with curl. However, if I try to deploy the ubuntu image specifying…
Alan Sereb
  • 2,358
  • 2
  • 17
  • 31
5
votes
1 answer

How to copy a file to a Docker container via Nomad job file

Is it possible? Here's my nomad job file job "test-job" { ... group "test-group" { driver = "docker" config { image = "" } ... } } I understand it is possible to COPY a file to a Docker image via docker build…
Alexander Ites
  • 155
  • 2
  • 9
4
votes
1 answer

Mounting volumes in docker via nomad

I am trying to run docker containers via nomad. This job spec aims to run a docker container with a java docker image. A volumne from a localhost path is supposed to be mounted on to the docker container. This volume will have some java files. The…
leoOrion
  • 1,833
  • 2
  • 26
  • 52
4
votes
3 answers

Nomad cannot pull other images if credential helper is in place

I am trying to pull images from my ecr repository as well as from dockerhub using Nomad. The problem is that if I don't pull those images myself, Nomad won't pull them and will complain with the error: Failed to find docker auth for repo…
Alan Sereb
  • 2,358
  • 2
  • 17
  • 31
4
votes
1 answer

Kafka Connect - do the workers need direct communication with each other

My objective is it deploy Kafka connect connectors ( s3 sink) using containers, so it's important to know the details about how workers may or may not communicate directly with each others. From what I read, I cannot be sure if workers will have a…
Yannick
  • 1,240
  • 2
  • 13
  • 25
4
votes
1 answer

When does nomad throttle a task?

How does nomad limit resource consumption for a task? If there are two tasks within a group that each have cpu = 100, is there a shared pool of 200 that both tasks have access to? What happens if one of those tasks wants access to more CPU…
klhr
  • 3,300
  • 1
  • 11
  • 25
4
votes
2 answers

Nomad configuration for single node to act as production server and client

How can I setup Nomad to act the same as it's development mode, but instead to run this as a production setup so it persists data? So that is nomad agent -dev. Do I run the client / server processes repeatedly? Or can I configure it to run both? So…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
1
2 3
12 13