mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-15 01:08:58 +03:00
Updated more references to old hostnames in the documentation to reflect the new naming convention.
22 lines
574 B
Desktop File
22 lines
574 B
Desktop File
[Unit]
|
|
Description=etcd
|
|
Documentation=https://github.com/etcd-io/etcd
|
|
|
|
[Service]
|
|
Type=notify
|
|
ExecStart=/usr/local/bin/etcd \
|
|
--name controlplane \
|
|
--initial-advertise-peer-urls http://127.0.0.1:2380 \
|
|
--listen-peer-urls http://127.0.0.1:2380 \
|
|
--listen-client-urls http://127.0.0.1:2379 \
|
|
--advertise-client-urls http://127.0.0.1:2379 \
|
|
--initial-cluster-token etcd-cluster-0 \
|
|
--initial-cluster controller=http://127.0.0.1:2380 \
|
|
--initial-cluster-state new \
|
|
--data-dir=/var/lib/etcd
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|