Skip to content

Commit

Permalink
feat: deploy to new dc
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmannafian04 committed Dec 31, 2023
1 parent 3d4d6c5 commit 5da70b3
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions slogin.nomad.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ variable "redis_config" {
}

job "slogin" {
datacenters = ["sg-ln"]
datacenters = ["id-dpk"]

group "slogin" {
network {
Expand All @@ -34,14 +34,6 @@ job "slogin" {
service {
name = "slogin"
port = "8080"
tags = [
"traefik.enable=true",
"traefik.consulcatalog.connect=true",
"traefik.http.routers.slogin.rule=Host(`slogin.ilman.io`)",
"traefik.http.routers.slogin.entrypoints=websecure",
"traefik.http.routers.slogin.tls=true",
"traefik.http.routers.slogin.tls.certResolver=cloudflareResolver",
]

connect {
sidecar_service {
Expand All @@ -60,8 +52,8 @@ job "slogin" {

sidecar_task {
resources {
cpu = 25
memory = 25
cpu = 100
memory = 50
}
}
}
Expand Down Expand Up @@ -97,8 +89,8 @@ job "slogin" {
}

resources {
cpu = "10"
memory = "10"
cpu = 50
memory = 20
}
}
}
Expand Down

0 comments on commit 5da70b3

Please sign in to comment.