kubespray/roles/network_plugin/templates/calico/calico-node.service.j2

20 lines
455 B
Plaintext
Raw Normal View History

[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 }}
{% else %}
2015-11-20 23:24:47 +08:00
ExecStart={{ bin_dir }}/calicoctl node --kubernetes --ip=${DEFAULT_IPV4}
{% endif %}
2015-11-20 23:24:47 +08:00
RemainAfterExit=yes
Type=oneshot
[Install]
WantedBy=multi-user.target