2016-07-04 15:16:18 +00:00
|
|
|
#!/bin/bash
|
2016-11-07 20:37:12 +00:00
|
|
|
/usr/bin/docker run -i --privileged --rm \
|
2016-11-09 10:31:12 +00:00
|
|
|
--net=host --pid=host \
|
2016-11-25 15:58:43 +00:00
|
|
|
-e ETCD_ENDPOINTS={{ network_plugins_etcd_access_endpoint }} \
|
2016-11-09 10:44:41 +00:00
|
|
|
-e ETCD_CA_CERT_FILE=/etc/calico/certs/ca_cert.crt \
|
|
|
|
-e ETCD_CERT_FILE=/etc/calico/certs/cert.crt \
|
|
|
|
-e ETCD_KEY_FILE=/etc/calico/certs/key.pem \
|
2016-07-04 15:16:18 +00:00
|
|
|
-v /usr/bin/docker:/usr/bin/docker \
|
|
|
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
|
|
-v /var/run/calico:/var/run/calico \
|
2016-11-09 10:44:41 +00:00
|
|
|
-v /etc/calico/certs:/etc/calico/certs:ro \
|
2016-07-04 15:16:18 +00:00
|
|
|
{{ calicoctl_image_repo }}:{{ calicoctl_image_tag}} \
|
|
|
|
$@
|