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.

19 lines
648 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 etcd.service
  6. [Service]
  7. User=root
  8. PermissionsStartOnly=true
  9. {% if inventory_hostname in groups['kube-node'] and peer_with_router|default(false)%}
  10. ExecStart={{ bin_dir }}/calicoctl node --kubernetes --ip={{ip | default(ansible_default_ipv4.address) }} --as={{ local_as }} --detach=false
  11. {% else %}
  12. ExecStart={{ bin_dir }}/calicoctl node --kubernetes --ip={{ip | default(ansible_default_ipv4.address) }} --detach=false
  13. {% endif %}
  14. Restart=always
  15. Restart=10
  16. [Install]
  17. WantedBy=multi-user.target