mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-19 04:00:11 -03:30
local_volumes_enabled replaced by local_volume_provisioner_enabled
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
-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 %}
|
||||
{% if local_volume_provisioner_enabled == true %}
|
||||
-v {{ local_volume_base_dir }}:{{ local_volume_base_dir }}:shared \
|
||||
{% endif %}
|
||||
{{ hyperkube_image_repo }}:{{ hyperkube_image_tag}} \
|
||||
|
||||
@@ -36,7 +36,7 @@ ExecStart=/usr/bin/rkt run \
|
||||
--volume var-lib-docker,kind=host,source={{ docker_daemon_graph }},readOnly=false \
|
||||
--volume var-lib-kubelet,kind=host,source=/var/lib/kubelet,readOnly=false,recursive=true \
|
||||
--volume var-log,kind=host,source=/var/log \
|
||||
{% if local_volumes_enabled == true %}
|
||||
{% if local_volume_provisioner_enabled == true %}
|
||||
--volume local-volume-base-dir,kind=host,source={{ local_volume_base_dir }},readOnly=false,recursive=true \
|
||||
{% endif %}
|
||||
{% if kube_network_plugin in ["calico", "weave", "canal", "flannel", "contiv"] %}
|
||||
@@ -67,7 +67,7 @@ ExecStart=/usr/bin/rkt run \
|
||||
--mount volume=var-lib-kubelet,target=/var/lib/kubelet \
|
||||
--mount volume=var-log,target=/var/log \
|
||||
--mount volume=hosts,target=/etc/hosts \
|
||||
{% if local_volumes_enabled == true %}
|
||||
{% if local_volume_provisioner_enabled == true %}
|
||||
--mount volume=local-volume-base-dir,target={{ local_volume_base_dir }} \
|
||||
{% endif %}
|
||||
{% if kubelet_flexvolumes_plugins_dir is defined %}
|
||||
|
||||
Reference in New Issue
Block a user