2015-10-15 15:40:02 +08:00
|
|
|
[Unit]
|
|
|
|
Description=calicoctl node
|
|
|
|
After=etcd2.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=/etc/network-environment
|
|
|
|
User=root
|
|
|
|
PermissionsStartOnly=true
|
2015-11-02 20:41:03 +08:00
|
|
|
{% if peer_with_router|default(false) %}
|
2015-11-20 23:24:47 +08:00
|
|
|
ExecStart={{ bin_dir }}/calicoctl node --kubernetes --ip=${DEFAULT_IPV4} --as={{ local_as }}
|
2015-10-15 15:40:02 +08:00
|
|
|
{% else %}
|
2015-11-20 23:24:47 +08:00
|
|
|
ExecStart={{ bin_dir }}/calicoctl node --kubernetes --ip=${DEFAULT_IPV4}
|
2015-10-15 15:40:02 +08:00
|
|
|
{% endif %}
|
2015-11-20 23:24:47 +08:00
|
|
|
|
2015-10-15 15:40:02 +08:00
|
|
|
RemainAfterExit=yes
|
|
|
|
Type=oneshot
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|