only mount volumes if local_volumes_enabled is true. fix mount flags in rkt. (#1923)

This commit is contained in:
Spencer Smith
2017-11-03 03:10:37 -04:00
committed by Matthew Mosesohn
parent 66c67dbe73
commit ec1170bd37
2 changed files with 7 additions and 1 deletions

View File

@@ -26,7 +26,9 @@
-v /var/run:/var/run:rw \
-v {{kube_config_dir}}:{{kube_config_dir}}:ro \
-v /etc/os-release:/etc/os-release:ro \
{% if local_volumes_enabled == true %}
-v {{ local_volume_base_dir }}:{{ local_volume_base_dir }}:shared \
{% endif %}
{{ hyperkube_image_repo }}:{{ hyperkube_image_tag}} \
./hyperkube kubelet \
"$@"