2015-10-15 07:40:02 +00:00
|
|
|
[Unit]
|
|
|
|
Description=calicoctl node
|
|
|
|
After=etcd2.service
|
|
|
|
|
|
|
|
[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-20 15:24:47 +00:00
|
|
|
ExecStart={{ bin_dir }}/calicoctl node --kubernetes --ip=${DEFAULT_IPV4} --as={{ local_as }}
|
2015-10-15 07:40:02 +00:00
|
|
|
{% else %}
|
2015-11-20 15:24:47 +00:00
|
|
|
ExecStart={{ bin_dir }}/calicoctl node --kubernetes --ip=${DEFAULT_IPV4}
|
2015-10-15 07:40:02 +00:00
|
|
|
{% endif %}
|
2015-11-20 15:24:47 +00:00
|
|
|
|
2015-10-15 07:40:02 +00:00
|
|
|
RemainAfterExit=yes
|
|
|
|
Type=oneshot
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|