Created
May 25, 2021 10:55
-
-
Save iamabhishek-dubey/836efefb42484455cb276999dcff5ba2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "iis-test" { | |
datacenters = ["dc1"] | |
type = "service" | |
group "iis-test" { | |
count = 1 | |
restart { | |
attempts = 10 | |
interval = "5m" | |
delay = "25s" | |
mode = "delay" | |
} | |
task "iis-test" { | |
driver = "win_iis" | |
artifact { | |
source = "https://github.com/iamabhishek-dubey/nomad-driver-iis/releases/download/v0.4/test-hello-world.zip" | |
} | |
config { | |
path = "${NOMAD_TASK_DIR}\\netcoreapp2.1" | |
apppool_identity { | |
identity = "NetworkService" | |
} | |
bindings { | |
type = "http" | |
resource_port = "httplabel" | |
} | |
} | |
resources { | |
cpu = 100 | |
memory = 20 | |
network { | |
port "httplabel" {} | |
} | |
} | |
service { | |
name = "iis-test" | |
tags = ["iis-test", "windows-iis-test"] | |
port = "httplabel" | |
check { | |
type = "tcp" | |
interval = "10s" | |
timeout = "2s" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment