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.
28 lines
864 B
28 lines
864 B
[Unit]
|
|
Description=calico-rr
|
|
After=docker.service
|
|
Requires=docker.service
|
|
|
|
[Service]
|
|
EnvironmentFile=/etc/calico/calico-rr.env
|
|
ExecStartPre=-{{ docker_bin_dir }}/docker rm -f calico-rr
|
|
ExecStart={{ docker_bin_dir }}/docker run --net=host --privileged \
|
|
--name=calico-rr \
|
|
-e IP=${IP} \
|
|
-e IP6=${IP6} \
|
|
-e ETCD_ENDPOINTS=${ETCD_ENDPOINTS} \
|
|
-e ETCD_CA_CERT_FILE=${ETCD_CA_CERT_FILE} \
|
|
-e ETCD_CERT_FILE=${ETCD_CERT_FILE} \
|
|
-e ETCD_KEY_FILE=${ETCD_KEY_FILE} \
|
|
-v /var/log/calico-rr:/var/log/calico \
|
|
-v {{ calico_cert_dir }}:{{ calico_cert_dir }}:ro \
|
|
--memory={{ calico_rr_memory_limit|regex_replace('Mi', 'M') }} --cpu-shares={{ calico_rr_cpu_limit|regex_replace('m', '') }} \
|
|
{{ calico_rr_image_repo }}:{{ calico_rr_image_tag }}
|
|
|
|
Restart=always
|
|
RestartSec=10s
|
|
|
|
ExecStop=-{{ docker_bin_dir }}/docker stop calico-rr
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|