29 lines
944 B
Desktop File
29 lines
944 B
Desktop File
[Unit]
|
|
Description=etcd
|
|
Documentation=https://github.com/coreos
|
|
[Service]
|
|
ExecStart=/usr/local/bin/etcd \
|
|
--name 172.16.100.111 \
|
|
--cert-file=/etc/etcd/kubernetes.pem \
|
|
--key-file=/etc/etcd/kubernetes-key.pem \
|
|
--peer-cert-file=/etc/etcd/kubernetes.pem \
|
|
--peer-key-file=/etc/etcd/kubernetes-key.pem \
|
|
--trusted-ca-file=/etc/etcd/ca.pem \
|
|
--peer-trusted-ca-file=/etc/etcd/ca.pem \
|
|
--peer-client-cert-auth \
|
|
--client-cert-auth \
|
|
--initial-advertise-peer-urls https://172.16.100.111:2380 \
|
|
--listen-peer-urls https://0.0.0.0:2380 \
|
|
--listen-client-urls https://0.0.0.0:2379 \
|
|
--advertise-client-urls https://172.16.100.111:2379 \
|
|
--initial-cluster-token etcd-cluster-0 \
|
|
--initial-cluster 172.16.100.111=https://172.16.100.111:2380,172.16.100.112=https://172.16.100.112:2380,172.16.100.113=https://172.16.100.113:2380 \
|
|
--initial-cluster-state new \
|
|
--data-dir=/var/lib/etcd
|
|
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target |