calico.service.j2 858 B

1234567891011121314151617181920212223242526272829
  1. [Unit]
  2. Description=calico
  3. After=docker.service
  4. Requires=docker.service
  5. [Service]
  6. Restart=always
  7. ExecStartPre=-/usr/bin/docker rm -f calico-node
  8. ExecStart=/usr/bin/docker run --net=host --privileged \
  9. --name=calico-node \
  10. -e WAIT_FOR_DATASTORE=true \
  11. -e FELIX_DEFAULTENDPOINTTOHOSTACTION=ACCEPT \
  12. -e CALICO_IPV4POOL_IPIP=always \
  13. -e FELIX_IPV6SUPPORT=false \
  14. -e ETCD_ENDPOINTS={{ etcd_endpoints }} \
  15. -v /etc/origin/calico:/etc/origin/calico \
  16. -e ETCD_CA_CERT_FILE={{ calico_etcd_ca_cert_file }} \
  17. -e ETCD_CERT_FILE={{ calico_etcd_cert_file }} \
  18. -e ETCD_KEY_FILE={{ calico_etcd_key_file }} \
  19. -e NODENAME={{ openshift.common.hostname }} \
  20. -v /var/log/calico:/var/log/calico \
  21. -v /lib/modules:/lib/modules \
  22. -v /var/run/calico:/var/run/calico \
  23. calico/node:v1.1.0
  24. ExecStop=-/usr/bin/docker stop calico-node
  25. [Install]
  26. WantedBy=multi-user.target