Skip to content

Instantly share code, notes, and snippets.

@stevesloka
Created June 5, 2015 16:09
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 stevesloka/4d97b2ce9ce08c1f4d85 to your computer and use it in GitHub Desktop.
Save stevesloka/4d97b2ce9ce08c1f4d85 to your computer and use it in GitHub Desktop.
pod
{
"apiVersion": "v1beta3",
"kind": "ReplicationController",
"metadata": {
"labels": {
"name": "dermapi"
},
"name": "dermapi"
},
"spec": {
"replicas": 1,
"selector": {
"name": "dermapi"
},
"template": {
"metadata": {
"labels": {
"app": "derm",
"name": "dermapi",
"version": "0.0.1"
}
},
"spec": {
"containers": [
{
"image": "docker-repo-dev.sloka.edu/kubederm/rest-api:latest",
"name": "dermapi",
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
],
"volumeMounts": [
{
"mountPath": "/data",
"name": "logs",
"readOnly": false
}
]
},
{
"image": "docker-repo-dev.sloka.edu/slokaent/logstash:latest",
"name": "dermapi-logstash",
"volumeMounts": [
{
"mountPath": "/data",
"name": "logs",
"readOnly": false
},
{
"name": "ls-config",
"mountPath": "/logstash/config",
"readOnly": false
}
]
}
],
"nodeSelector": {
"app": "derm"
},
"volumes": [
{
"name": "logs",
"emptyDir": {}
},
{
"name": "ls-config",
"hostPath": {
"path": "/var/mnt/shared/derm/logstash-conf/restapi"
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment