k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
446 B
18 lines
446 B
[Unit]
|
|
Description=etcd docker wrapper
|
|
Wants=docker.socket
|
|
After=docker.service
|
|
|
|
[Service]
|
|
User=root
|
|
PermissionsStartOnly=true
|
|
EnvironmentFile=/etc/etcd.env
|
|
ExecStart={{ bin_dir }}/etcd
|
|
ExecStartPre=-{{ docker_bin_dir }}/docker rm -f {{ etcd_member_name | default("etcd") }}
|
|
ExecStop={{ docker_bin_dir }}/docker stop {{ etcd_member_name | default("etcd") }}
|
|
Restart=always
|
|
RestartSec=15s
|
|
TimeoutStartSec=30s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|