mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-08 01:47:37 -02:30
Remove modprobe binary from kubelet rkt deployment (#2917)
This commit is contained in:
@@ -18,7 +18,6 @@ EnvironmentFile={{kube_config_dir}}/kubelet.env
|
|||||||
# stage1-fly mounts /proc /sys /dev so no need to duplicate the mounts
|
# stage1-fly mounts /proc /sys /dev so no need to duplicate the mounts
|
||||||
ExecStart=/usr/bin/rkt run \
|
ExecStart=/usr/bin/rkt run \
|
||||||
{% if kubelet_load_modules == true %}
|
{% if kubelet_load_modules == true %}
|
||||||
--volume modprobe,kind=host,source=/usr/sbin/modprobe \
|
|
||||||
--volume lib-modules,kind=host,source=/lib/modules \
|
--volume lib-modules,kind=host,source=/lib/modules \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
--volume os-release,kind=host,source=/etc/os-release,readOnly=true \
|
--volume os-release,kind=host,source=/etc/os-release,readOnly=true \
|
||||||
@@ -51,7 +50,6 @@ ExecStart=/usr/bin/rkt run \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if kubelet_load_modules == true %}
|
{% if kubelet_load_modules == true %}
|
||||||
--mount volume=modprobe,target=/usr/sbin/modprobe \
|
|
||||||
--mount volume=lib-modules,target=/lib/modules \
|
--mount volume=lib-modules,target=/lib/modules \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
--mount volume=etc-cni,target=/etc/cni \
|
--mount volume=etc-cni,target=/etc/cni \
|
||||||
|
|||||||
Reference in New Issue
Block a user