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
427 B

  1. #!/bin/bash
  2. /usr/bin/docker run --privileged --rm \
  3. --net=host --pid=host --name=kubelet \
  4. -v /etc/cni:/etc/cni:ro \
  5. -v /opt/cni:/opt/cni:ro \
  6. -v /etc/kubernetes:/etc/kubernetes \
  7. -v /sys:/sys \
  8. -v /dev:/dev \
  9. -v /var/lib/docker:/var/lib/docker \
  10. -v /var/run:/var/run \
  11. -v /var/lib/kubelet:/var/lib/kubelet \
  12. {{ hyperkube_image_repo }}:{{ hyperkube_image_tag}} \
  13. nsenter --target=1 --mount --wd=. -- \
  14. ./hyperkube kubelet \
  15. $@