2015-10-15 07:40:02 +00:00
|
|
|
[Unit]
|
2015-11-21 12:20:39 +00:00
|
|
|
Description=Calico per-node agent
|
|
|
|
Documentation=https://github.com/projectcalico/calico-docker
|
|
|
|
Requires=docker.service
|
|
|
|
After=docker.service etcd2.service
|
2015-10-15 07:40:02 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=/etc/network-environment
|
|
|
|
User=root
|
|
|
|
PermissionsStartOnly=true
|
2015-11-02 12:41:03 +00:00
|
|
|
{% if peer_with_router|default(false) %}
|
2015-11-21 12:20:39 +00:00
|
|
|
ExecStart={{ bin_dir }}/calicoctl node --kubernetes --ip=${DEFAULT_IPV4} --as={{ local_as }} --detach=false
|
2015-10-15 07:40:02 +00:00
|
|
|
{% else %}
|
2015-11-21 12:20:39 +00:00
|
|
|
ExecStart={{ bin_dir }}/calicoctl node --kubernetes --ip=${DEFAULT_IPV4} --detach=false
|
2015-10-15 07:40:02 +00:00
|
|
|
{% endif %}
|
2015-11-21 12:20:39 +00:00
|
|
|
Restart=always
|
|
|
|
Restart=10
|
2015-10-15 07:40:02 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|