Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 17, 2020 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/f51520210ab7f368582e102403bae6ed to your computer and use it in GitHub Desktop.
Save velotiotech/f51520210ab7f368582e102403bae6ed to your computer and use it in GitHub Desktop.
{
"id": "/#NODENAME#",
"backoffFactor": 1.15,
"backoffSeconds": 1,
"constraints": [
[
"hostname",
"CLUSTER",
"#NODEHOSTIP#"
]
],
"container": {
"type": "DOCKER",
"volumes": [
{
"external": {
"name": "#VOLUMENAME#",
"provider": "dvdi",
"options": {
"dvdi/driver": "rexray"
}
},
"mode": "RW",
"containerPath": "/data"
}
],
"docker": {
"image": "parvezkazi13/redis:latest",
"forcePullImage": false,
"privileged": false,
"parameters": []
}
},
"cpus": 0.5,
"disk": 0,
"fetch": [],
"healthChecks": [],
"instances": 1,
"maxLaunchDelaySeconds": 3600,
"mem": 4096,
"gpus": 0,
"networks": [
{
"mode": "host"
}
],
"portDefinitions": [
{
"labels": {
"VIP_0": "/#NODEVIP#:6379"
},
"name": "#NODEVIP#",
"protocol": "tcp",
"port": 6379
}
],
"requirePorts": true,
"upgradeStrategy": {
"maximumOverCapacity": 0,
"minimumHealthCapacity": 0.5
},
"killSelection": "YOUNGEST_FIRST",
"unreachableStrategy": {
"inactiveAfterSeconds": 300,
"expungeAfterSeconds": 600
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment