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.

15 lines
728 B

  1. #!/bin/bash
  2. {{ docker_bin_dir }}/docker run -i --privileged --rm \
  3. --net=host --pid=host \
  4. -e ETCD_ENDPOINTS={{ etcd_access_addresses }} \
  5. -e ETCD_CA_CERT_FILE={{ canal_cert_dir }}/ca_cert.crt \
  6. -e ETCD_CERT_FILE={{ canal_cert_dir }}/cert.crt \
  7. -e ETCD_KEY_FILE={{ canal_cert_dir }}/key.pem \
  8. -v {{ docker_bin_dir }}/docker:{{ docker_bin_dir }}/docker \
  9. -v /var/run/docker.sock:/var/run/docker.sock \
  10. -v /var/run/calico:/var/run/calico \
  11. -v {{ canal_cert_dir }}:{{ canal_cert_dir }}:ro \
  12. -v {{ canal_policy_dir }}:{{ canal_policy_dir }}:ro \
  13. --memory={{ calicoctl_memory_limit|regex_replace('Mi', 'M') }} --cpu-shares={{ calicoctl_cpu_limit|regex_replace('m', '') }} \
  14. {{ calicoctl_image_repo }}:{{ calicoctl_image_tag}} \
  15. "$@"