Permalink
Switch branches/tags
Find file Copy path
70c19b5 Jun 28, 2018
1 contributor

Users who have contributed to this file

36 lines (33 sloc) 1.14 KB
[Unit]
Description=Etcd Server
After=network.target
After=network-online.target
Wants=network-online.target
Documentation=https://github.com/coreos
[Service]
User=k8s
Type=notify
WorkingDirectory=/var/lib/etcd/
ExecStart=/opt/k8s/bin/etcd \
--data-dir=/var/lib/etcd \
--name=kube-node1 \
--cert-file=/etc/etcd/cert/etcd.pem \
--key-file=/etc/etcd/cert/etcd-key.pem \
--trusted-ca-file=/etc/kubernetes/cert/ca.pem \
--peer-cert-file=/etc/etcd/cert/etcd.pem \
--peer-key-file=/etc/etcd/cert/etcd-key.pem \
--peer-trusted-ca-file=/etc/kubernetes/cert/ca.pem \
--peer-client-cert-auth \
--client-cert-auth \
--listen-peer-urls=https://172.27.129.105:2380 \
--initial-advertise-peer-urls=https://172.27.129.105:2380 \
--listen-client-urls=https://172.27.129.105:2379,http://127.0.0.1:2379 \
--advertise-client-urls=https://172.27.129.105:2379 \
--initial-cluster-token=etcd-cluster-0 \
--initial-cluster=kube-node1=https://172.27.129.105:2380,kube-node2=https://172.27.129.111:2380,kube-node3=https://172.27.129.112:2380 \
--initial-cluster-state=new
Restart=on-failure
RestartSec=5
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target