mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 20:50:24 +00:00
105 lines
2.5 KiB
Plaintext
105 lines
2.5 KiB
Plaintext
{
|
|
"apiVersion": "v1beta3",
|
|
"kind": "Pod",
|
|
"metadata": {"name":"etcd-server"},
|
|
"spec":{
|
|
"hostNetwork": true,
|
|
"containers":[
|
|
{
|
|
"name": "etcd-container",
|
|
"image": "gcr.io/google_containers/etcd:2.0.9",
|
|
"command": [
|
|
"/usr/local/bin/etcd",
|
|
"--name", "${NODE_NAME}",
|
|
"--initial-advertise-peer-urls",
|
|
"http://${NODE_IP}:2380",
|
|
"--listen-peer-urls",
|
|
"http://${NODE_IP}:2380",
|
|
"--advertise-client-urls",
|
|
"http://${NODE_IP}:4001",
|
|
"--listen-client-urls",
|
|
"http://127.0.0.1:4001",
|
|
"--data-dir",
|
|
"/var/etcd/data",
|
|
"--discovery",
|
|
"${DISCOVERY_TOKEN}"
|
|
],
|
|
"ports":[
|
|
{ "name": "serverport",
|
|
"containerPort": 2380,
|
|
"hostPort": 2380},{
|
|
"name": "clientport",
|
|
"containerPort": 4001,
|
|
"hostPort": 4001}
|
|
],
|
|
"volumeMounts": [
|
|
{ "name": "varetcd",
|
|
"mountPath": "/var/etcd",
|
|
"readOnly": false},
|
|
{ "name": "etcssl",
|
|
"mountPath": "/etc/ssl",
|
|
"readOnly": true},
|
|
{ "name": "usrsharessl",
|
|
"mountPath": "/usr/share/ssl",
|
|
"readOnly": true},
|
|
{ "name": "varssl",
|
|
"mountPath": "/var/ssl",
|
|
"readOnly": true},
|
|
{ "name": "usrssl",
|
|
"mountPath": "/usr/ssl",
|
|
"readOnly": true},
|
|
{ "name": "usrlibssl",
|
|
"mountPath": "/usr/lib/ssl",
|
|
"readOnly": true},
|
|
{ "name": "usrlocalopenssl",
|
|
"mountPath": "/usr/local/openssl",
|
|
"readOnly": true},
|
|
{ "name": "etcopenssl",
|
|
"mountPath": "/etc/openssl",
|
|
"readOnly": true},
|
|
{ "name": "etcpkitls",
|
|
"mountPath": "/etc/pki/tls",
|
|
"readOnly": true}
|
|
]
|
|
}
|
|
],
|
|
"volumes":[
|
|
{ "name": "varetcd",
|
|
"hostPath": {
|
|
"path": "/var/etcd/data"}
|
|
},
|
|
{ "name": "etcssl",
|
|
"hostPath": {
|
|
"path": "/etc/ssl"}
|
|
},
|
|
{ "name": "usrsharessl",
|
|
"hostPath": {
|
|
"path": "/usr/share/ssl"}
|
|
},
|
|
{ "name": "varssl",
|
|
"hostPath": {
|
|
"path": "/var/ssl"}
|
|
},
|
|
{ "name": "usrssl",
|
|
"hostPath": {
|
|
"path": "/usr/ssl"}
|
|
},
|
|
{ "name": "usrlibssl",
|
|
"hostPath": {
|
|
"path": "/usr/lib/ssl"}
|
|
},
|
|
{ "name": "usrlocalopenssl",
|
|
"hostPath": {
|
|
"path": "/usr/local/openssl"}
|
|
},
|
|
{ "name": "etcopenssl",
|
|
"hostPath": {
|
|
"path": "/etc/openssl"}
|
|
},
|
|
{ "name": "etcpkitls",
|
|
"hostPath": {
|
|
"path": "/etc/pki/tls"}
|
|
}
|
|
]
|
|
}}
|