2016-07-04 15:16:18 +00:00
|
|
|
#!/bin/bash
|
2016-12-23 14:44:44 +00:00
|
|
|
{{ docker_bin_dir }}/docker run -i --privileged --rm \
|
2016-11-09 10:31:12 +00:00
|
|
|
--net=host --pid=host \
|
2017-10-04 12:27:55 +00:00
|
|
|
-e ETCD_ENDPOINTS={{ etcd_access_addresses }} \
|
2016-12-30 12:47:12 +00:00
|
|
|
-e ETCD_CA_CERT_FILE={{ calico_cert_dir }}/ca_cert.crt \
|
|
|
|
-e ETCD_CERT_FILE={{ calico_cert_dir }}/cert.crt \
|
|
|
|
-e ETCD_KEY_FILE={{ calico_cert_dir }}/key.pem \
|
2016-12-23 14:44:44 +00:00
|
|
|
-v {{ docker_bin_dir }}/docker:{{ docker_bin_dir }}/docker \
|
2016-07-04 15:16:18 +00:00
|
|
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
|
|
-v /var/run/calico:/var/run/calico \
|
2016-12-30 12:47:12 +00:00
|
|
|
-v {{ calico_cert_dir }}:{{ calico_cert_dir }}:ro \
|
2016-12-23 14:44:44 +00:00
|
|
|
--memory={{ calicoctl_memory_limit|regex_replace('Mi', 'M') }} --cpu-shares={{ calicoctl_cpu_limit|regex_replace('m', '') }} \
|
2016-07-04 15:16:18 +00:00
|
|
|
{{ calicoctl_image_repo }}:{{ calicoctl_image_tag}} \
|
2017-02-21 19:22:40 +00:00
|
|
|
"$@"
|