mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
commit
c8591bd323
@ -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"}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user