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.

14 lines
679 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={{ calico_cert_dir }}/ca_cert.crt \
  6. -e ETCD_CERT_FILE={{ calico_cert_dir }}/cert.crt \
  7. -e ETCD_KEY_FILE={{ calico_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 {{ calico_cert_dir }}:{{ calico_cert_dir }}:ro \
  12. --memory={{ calicoctl_memory_limit|regex_replace('Mi', 'M') }} --cpu-shares={{ calicoctl_cpu_limit|regex_replace('m', '') }} \
  13. {{ calicoctl_image_repo }}:{{ calicoctl_image_tag}} \
  14. "$@"