From f0d5b31c29d042bdb5e268b221c63a1447c1b13b Mon Sep 17 00:00:00 2001 From: jorgeboti Date: Wed, 28 Jul 2021 06:55:19 +0000 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20'etcd.service'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etcd.service | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 etcd.service diff --git a/etcd.service b/etcd.service new file mode 100644 index 0000000..705a169 --- /dev/null +++ b/etcd.service @@ -0,0 +1,29 @@ +[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 \ No newline at end of file