mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
add fleet.service
This commit is contained in:
parent
5f4c8af492
commit
d57f056447
1
etcd-arm/etc/default/fleet
Normal file
1
etcd-arm/etc/default/fleet
Normal file
@ -0,0 +1 @@
|
||||
FLEET_METADATA="region=us-west,az=us-west-1"
|
34
etcd-arm/etc/fleet/fleet.conf
Normal file
34
etcd-arm/etc/fleet/fleet.conf
Normal file
@ -0,0 +1,34 @@
|
||||
# This config file is INI-formatted
|
||||
|
||||
# Lower the logging threshold. Acceptable values are 0, 1, and 2. A higher
|
||||
# value corresponds to a lower logging threshold.
|
||||
# verbosity=0
|
||||
|
||||
# Provide a custom set of etcd endpoints. The default value is determined
|
||||
# by the underlying go-etcd library.
|
||||
# etcd_servers=["http://127.0.0.1:4001", "http://127.0.0.1:2379"]
|
||||
|
||||
# Amount of time in seconds to allow a single etcd request before considering it failed.
|
||||
# etcd_request_timeout=1.0
|
||||
|
||||
# Provide TLS configuration when SSL certificate authentication is enabled in etcd endpoints
|
||||
# etcd_cafile=/path/to/CAfile
|
||||
# etcd_keyfile=/path/to/keyfile
|
||||
# etcd_certfile=/path/to/certfile
|
||||
|
||||
# IP address that should be published with any socket information. By default,
|
||||
# no IP address is published.
|
||||
# public_ip=""
|
||||
|
||||
# Comma-delimited key/value pairs that are published to the fleet registry.
|
||||
# This data can be referenced in unit files to affect scheduling decisions.
|
||||
# An example could look like: metadata="region=us-west,az=us-west-1"
|
||||
# metadata=""
|
||||
|
||||
# An Agent will be considered dead if it exceeds this amount of time to
|
||||
# communicate with the Registry. The agent will attempt a heartbeat at half
|
||||
# of this value.
|
||||
# agent_ttl="30s"
|
||||
|
||||
# Interval at which the engine should reconcile the cluster schedule in etcd.
|
||||
# engine_reconcile_interval=2
|
@ -3,7 +3,7 @@ Description=Etcd Daemon
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/default/etcd
|
||||
EnvironmentFile=-/etc/default/etcd
|
||||
ExecStartPre=/usr/bin/mkdir -p $ETCD_DATA_DIR
|
||||
ExecStart=/usr/local/bin/etcd
|
||||
|
||||
|
10
etcd-arm/etc/systemd/system/fleet.service
Normal file
10
etcd-arm/etc/systemd/system/fleet.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Fleet Daemon
|
||||
After=etcd.service
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/default/fleet
|
||||
ExecStart=/usr/local/bin/fleetd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user