Last active
November 30, 2019 19:05
-
-
Save vigneshragupathy/26d1ecf209a90ed6d046d27e76da7ffa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=etcd | |
| Documentation=https://github.com/coreos | |
| [Service] | |
| ExecStart=/usr/local/bin/etcd \ | |
| --name=kubernetes1 \ | |
| --cert-file=/etc/etcd/etcd-server.crt \ | |
| --key-file=/etc/etcd/etcd-server.key \ | |
| --peer-cert-file=/etc/etcd/etcd-server.crt \ | |
| --peer-key-file=/etc/etcd/etcd-server.key \ | |
| --trusted-ca-file=/etc/etcd/ca.crt \ | |
| --peer-trusted-ca-file=/etc/etcd/ca.crt \ | |
| --peer-client-cert-auth=true \ | |
| --client-cert-auth=true \ | |
| --initial-advertise-peer-urls=https://10.0.0.1:2380 \ | |
| --listen-peer-urls=https://10.0.0.1:2380 \ | |
| --listen-client-urls=https://10.0.0.1:2379,https://127.0.0.1:2379 \ | |
| --advertise-client-urls=https://10.0.0.1:2379 \ | |
| --initial-cluster-token=etcd-cluster-0 \ | |
| --initial-cluster=kubernetes1=https://10.0.0.1:2380 \ | |
| --initial-cluster-state=new \ | |
| --data-dir=/var/lib/etcd | |
| Restart=on-failure | |
| RestartSec=5 | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment