Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Add VIP support for MoM, replace ports by portDefinitions
Browse files Browse the repository at this point in the history
  • Loading branch information
deric committed Jul 13, 2018
1 parent 0d219c5 commit 84ff35d
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions repo/packages/M/marathon/201/marathon.json.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@
"mem": {{service.mem}},
"instances": {{service.instances}},
"constraints": [["hostname", "UNIQUE"]],
"ports": [
{{#marathon.http-port}}{{marathon.http-port}}{{/marathon.http-port}}{{^marathon.http-port}}0{{/marathon.http-port}}
, 0
{{#marathon.ssl-keystore-path}}
{{#marathon.ssl-keystore-password}}
, {{#marathon.https-port}}{{marathon.https-port}}{{/marathon.https-port}}{{^marathon.https-port}}0{{/marathon.https-port}}
{{/marathon.ssl-keystore-password}}
{{/marathon.ssl-keystore-path}}
],
"uris": {{service.uris}},
"healthChecks": [
{
Expand All @@ -33,6 +24,29 @@
"network": "HOST"
}
},
"portDefinitions": [
{
"port": {{#marathon.http-port}}{{marathon.http-port}}{{/marathon.http-port}}{{^marathon.http-port}}0{{/marathon.http-port}},
"protocol": "tcp",
"name": "{{service.name}}",
"labels": { "VIP_0": "/{{service.name}}:80" }
},
{
"port": 0,
"protocol": "tcp",
"name": "libprocess"
}
{{#marathon.ssl-keystore-path}}
{{#marathon.ssl-keystore-password}}
,{
"port": {{#marathon.https-port}}{{marathon.https-port}}{{/marathon.https-port}}{{^marathon.https-port}}0{{/marathon.https-port}},
"protocol": "tcp",
"name": "{{service.name}}-https",
"labels": { "VIP_1": "/{{service.name}}:443" }
}
{{/marathon.ssl-keystore-password}}
{{/marathon.ssl-keystore-path}}
],
"env": {
"JVM_OPTS": "-Xms{{jvm.heap-min}}m -Xmx{{jvm.heap-max}}m {{#jvm.opts}}{{jvm.opts}}{{/jvm.opts}}"
},
Expand Down

0 comments on commit 84ff35d

Please sign in to comment.