From fa61164e32a25aec83a43e08ca66d3e641f7d643 Mon Sep 17 00:00:00 2001 From: Aleksandr Zimin Date: Wed, 22 Jan 2025 12:59:47 +0300 Subject: [PATCH] [controller] Add dm_snapshot loading (#119) Signed-off-by: Aleksandr Zimin --- templates/agent/daemonset.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/agent/daemonset.yaml b/templates/agent/daemonset.yaml index aa634cfe..135e520d 100644 --- a/templates/agent/daemonset.yaml +++ b/templates/agent/daemonset.yaml @@ -88,7 +88,11 @@ spec: - -p - -- - modprobe + - -a - dm_thin_pool +{{- if (.Values.global.enabledModules | has "snapshot-controller") }} + - dm_snapshot +{{- end }} # Privileged mode is required to use nsenter and access the host's mount namespace. # This is necessary to run modprobe and load the dm_thin_pool kernel module on the host. securityContext: