k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
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
15 lines
728 B
#!/bin/bash
|
|
{{ docker_bin_dir }}/docker run -i --privileged --rm \
|
|
--net=host --pid=host \
|
|
-e ETCD_ENDPOINTS={{ etcd_access_addresses }} \
|
|
-e ETCD_CA_CERT_FILE={{ canal_cert_dir }}/ca_cert.crt \
|
|
-e ETCD_CERT_FILE={{ canal_cert_dir }}/cert.crt \
|
|
-e ETCD_KEY_FILE={{ canal_cert_dir }}/key.pem \
|
|
-v {{ docker_bin_dir }}/docker:{{ docker_bin_dir }}/docker \
|
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
-v /var/run/calico:/var/run/calico \
|
|
-v {{ canal_cert_dir }}:{{ canal_cert_dir }}:ro \
|
|
-v {{ canal_policy_dir }}:{{ canal_policy_dir }}:ro \
|
|
--memory={{ calicoctl_memory_limit|regex_replace('Mi', 'M') }} --cpu-shares={{ calicoctl_cpu_limit|regex_replace('m', '') }} \
|
|
{{ calicoctl_image_repo }}:{{ calicoctl_image_tag}} \
|
|
"$@"
|