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.

23 lines
714 B

  1. #!/bin/bash
  2. {{ docker_bin_dir }}/docker run \
  3. --net=host \
  4. --pid=host \
  5. --privileged \
  6. --name=kubelet \
  7. --restart=on-failure:5 \
  8. --memory={{ kubelet_memory_limit|regex_replace('Mi', 'M') }} \
  9. --cpu-shares={{ kubelet_cpu_limit|regex_replace('m', '') }} \
  10. -v /etc/cni:/etc/cni:ro \
  11. -v /opt/cni:/opt/cni:ro \
  12. -v /etc/ssl:/etc/ssl:ro \
  13. {% for dir in ssl_ca_dirs -%}
  14. -v {{ dir }}:{{ dir }}:ro \
  15. {% endfor -%}
  16. -v /sys:/sys:ro \
  17. -v {{ docker_daemon_graph }}:/var/lib/docker:rw \
  18. -v /var/lib/kubelet:/var/lib/kubelet:shared \
  19. -v /var/run:/var/run:rw \
  20. -v {{kube_config_dir}}:{{kube_config_dir}}:ro \
  21. {{ hyperkube_image_repo }}:{{ hyperkube_image_tag}} \
  22. ./hyperkube kubelet \
  23. $@