You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
626 B

  1. [Unit]
  2. Description=Calico per-node agent
  3. Documentation=https://github.com/projectcalico/calico-docker
  4. Requires=docker.service
  5. After=docker.service etcd2.service
  6. [Service]
  7. EnvironmentFile=/etc/network-environment
  8. User=root
  9. PermissionsStartOnly=true
  10. {% if inventory_hostname in groups['kube-node'] and peer_with_router|default(false)%}
  11. ExecStart={{ bin_dir }}/calicoctl node --kubernetes --ip=${DEFAULT_IPV4} --as={{ local_as }} --detach=false
  12. {% else %}
  13. ExecStart={{ bin_dir }}/calicoctl node --kubernetes --ip=${DEFAULT_IPV4} --detach=false
  14. {% endif %}
  15. Restart=always
  16. Restart=10
  17. [Install]
  18. WantedBy=multi-user.target