nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests |Archive

commit 800db2e036740485f2de8f84738af7cb2862e65a
parent ebac7b12a1d6353a47cdfbaf1c2fedfc7a4f4466
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Wed, 12 Jun 2024 06:26:32 +0200

feat(registry): consul service for registry

Diffstat:
Mhcl/infra/registry/simple-registry.nomad | 13++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/hcl/infra/registry/simple-registry.nomad b/hcl/infra/registry/simple-registry.nomad @@ -4,7 +4,7 @@ job "simple-registry" { priority = 85 group "server" { - count = 4 + count = 5 volume "registry-data" { type = "csi" @@ -13,12 +13,19 @@ job "simple-registry" { attachment_mode = "file-system" } + service { + port = "internal-registry" + } + network { port "http" { to = 5000 static = 5000 host_network = "private" } + port "internal-registry" { + to = 5000 + } } task "registry" { @@ -31,8 +38,8 @@ job "simple-registry" { config { image = "registry:latest" - force_pull = true - ports = ["http"] + force_pull = false + ports = ["http", "internal-registry"] } resources {