Skip to content

Commit

Permalink
Merge branch 'main' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann-Etrillard committed Feb 28, 2024
2 parents f718f39 + 5966c75 commit f1a7515
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
26 changes: 20 additions & 6 deletions pscload-v2.nomad.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,26 @@ job "pscload" {

group "pscload-services" {
count = "1"
// Volume portworx CSI
volume "pscload" {
attachment_mode = "file-system"
access_mode = "single-node-writer"
type = "csi"
read_only = false
source = "vs-${nomad_namespace}-pscload-data"
}

restart {
attempts = 3
delay = "60s"
interval = "1h"
mode = "fail"
}

constraint {
affinity {
attribute = "$\u007Bnode.class\u007D"
value = "data"
value = "compute"
}

network {
Expand All @@ -32,13 +42,17 @@ job "pscload" {
kill_timeout = "90s"
kill_signal = "SIGTERM"
driver = "docker"
// Monter le volume portworx CSI
volume_mount {
volume = "pscload"
destination = "/app/files-repo"
read_only = false
}

config {
extra_hosts = [ "psc-api-maj.internal:$\u007BNOMAD_IP_http\u007D" ]
image = "${artifact.image}:${artifact.tag}"
volumes = [
"name=${nomad_namespace}-pscload-data,io_priority=high,size=10,repl=2:/app/files-repo"
]
volume_driver = "pxd"
ports = ["http"]
}
template {
Expand Down
2 changes: 1 addition & 1 deletion waypoint.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runner {
enabled = true
profile = "secpsc-${workspace.name}"
data_source "git" {
url = "https://github.com/prosanteconnect/pscload-v2.git"
url = "https://github.com/ansforge/psc-rass-loader.git"
ref = "${workspace.name}"
}
poll {
Expand Down

0 comments on commit f1a7515

Please sign in to comment.