Merge pull request #9491 from ArtfulCoder/etcd_log

Etcd log mount
This commit is contained in:
Abhi Shah 2015-06-10 13:17:10 -07:00
commit c8591bd323

View File

@ -7,15 +7,11 @@
"containers":[ "containers":[
{ {
"name": "etcd-container", "name": "etcd-container",
"image": "gcr.io/google_containers/etcd:2.0.9", "image": "gcr.io/google_containers/etcd:2.0.9.1",
"command": [ "command": [
"/usr/local/bin/etcd", "/bin/sh",
"--addr", "-c",
"127.0.0.1:4001", "/usr/local/bin/etcd --addr 127.0.0.1:4001 --bind-addr 127.0.0.1:4001 --data-dir /var/etcd/data 1>>/var/log/etcd.log 2>&1"
"--bind-addr",
"127.0.0.1:4001",
"--data-dir",
"/var/etcd/data"
], ],
"ports":[ "ports":[
{ "name": "serverport", { "name": "serverport",
@ -28,7 +24,12 @@
"volumeMounts": [ "volumeMounts": [
{"name": "varetcd", {"name": "varetcd",
"mountPath": "/var/etcd", "mountPath": "/var/etcd",
"readOnly": false} "readOnly": false
},
{"name": "varlogetcd",
"mountPath": "/var/log/etcd.log",
"readOnly": false
}
] ]
} }
], ],
@ -36,6 +37,10 @@
{ "name": "varetcd", { "name": "varetcd",
"hostPath": { "hostPath": {
"path": "/mnt/master-pd/var/etcd"} "path": "/mnt/master-pd/var/etcd"}
},
{ "name": "varlogetcd",
"hostPath": {
"path": "/var/log/etcd.log"}
} }
] ]
}} }}