Skip to content

Instantly share code, notes, and snippets.

@minyk
Created June 16, 2016 08:48
Show Gist options
  • Save minyk/d5748eccd20b3f542635c58809dbc242 to your computer and use it in GitHub Desktop.
Save minyk/d5748eccd20b3f542635c58809dbc242 to your computer and use it in GitHub Desktop.
dcos-elasticsearch-singlenode
{
"id": "/dashboard/elasticsearch",
"cmd": null,
"cpus": 1,
"mem": 1024,
"disk": 0,
"instances": 1,
"container": {
"docker": {
"image": "elasticsearch",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 9200,
"hostPort": 0,
"servicePort": 10000,
"protocol": "tcp",
"labels": {
"VIP_0": "10.10.10.100:9200"
}
},
{
"containerPort": 9300,
"hostPort": 0,
"servicePort": 10001,
"protocol": "tcp",
"labels": {}
}
],
"type": "DOCKER",
"volumes": [
{
"hostPath": "esdata",
"containerPath": "/usr/share/elasticsearch/data",
"mode": "RW"
},
{
"containerPath": "esdata",
"persistent": {
"size": 5000
},
"mode": "RW"
}
]
},
"env": {},
"labels": {
"DCOS_SERVICE_NAME": "elasticsearch",
"DCOS_SERVICE_PORT_INDEX": "0",
"DCOS_SERVICE_SCHEME": "http",
"DCOS_PACKAGE_NAME": "elasticsearch",
"DCOS_PACKAGE_IS_FRAMEWORK": "true"
},
"healthChecks": [
{
"protocol": "HTTP",
"path": "/",
"portIndex": 0,
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 3
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment