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