Last active
January 31, 2023 16:21
-
-
Save Neutrollized/67f20b3ab4344c630ffeb4239aca4142 to your computer and use it in GitHub Desktop.
Medium: Migrating off of Pivotal Cloud Foundry? Consider HashiCorp Nomad!
This file contains hidden or 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 "spring-music" { | |
datacenters = ["gcp-test"] | |
priority = 80 | |
group "spring-music" { | |
network { | |
port "access" { static = 28080 } | |
} | |
task "spring-music" { | |
driver = "java" | |
config { | |
jar_path = "spring-music-1.0.jar" | |
jvm_options = ["-Xmx1024M", "-Xms1024M"] | |
args = ["--server.port=${NOMAD_PORT_access}"] | |
} | |
resources { | |
cpu = 500 | |
memory = 1152 | |
} | |
artifact { | |
source = "https://storage.googleapis.com/public-file-server/spring-music-1.0.jar" | |
mode = "file" | |
destination = "spring-music-1.0.jar" | |
} | |
service { | |
name = "spring-music" | |
provider = "nomad" | |
port = "access" | |
tags = ["spring", "java17"] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment