From 140b13bf6ed3de7d04ab3009a56a52ea3b733865 Mon Sep 17 00:00:00 2001 From: Daniel Cosme Date: Wed, 29 Apr 2026 19:37:51 -0400 Subject: [PATCH] Fix hostmount in truenas-csi daemonset --- infrastructure/hydra/truenas-csi/kuztomization.yaml | 8 ++++---- infrastructure/hydra/truenas-csi/node-deamonset.yaml | 2 +- pkg/truenas/truenas.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/infrastructure/hydra/truenas-csi/kuztomization.yaml b/infrastructure/hydra/truenas-csi/kuztomization.yaml index 7ea2b17..d1461ab 100644 --- a/infrastructure/hydra/truenas-csi/kuztomization.yaml +++ b/infrastructure/hydra/truenas-csi/kuztomization.yaml @@ -4,14 +4,14 @@ metadata: name: truenas-csi namespace: truenas-csi resources: -- namespace.yaml - controller-deployment.yaml - controller-cluster-role.yaml -- controller-binding.yaml +- node-cluster-role.yaml +- node-binding.yaml - node-deamonset.yaml - CSIDriver.yaml - config.yaml +- namespace.yaml - controller-service-account.yaml +- controller-binding.yaml - node-service-account.yaml -- node-cluster-role.yaml -- node-binding.yaml diff --git a/infrastructure/hydra/truenas-csi/node-deamonset.yaml b/infrastructure/hydra/truenas-csi/node-deamonset.yaml index 9a239a4..99c4def 100644 --- a/infrastructure/hydra/truenas-csi/node-deamonset.yaml +++ b/infrastructure/hydra/truenas-csi/node-deamonset.yaml @@ -98,7 +98,7 @@ spec: - mountPath: /var/lib/iscsi mountPropagation: Bidirectional name: iscsi-lib - - mountPath: / + - mountPath: /host mountPropagation: Bidirectional name: host-root - args: diff --git a/pkg/truenas/truenas.go b/pkg/truenas/truenas.go index d3ac879..814085e 100644 --- a/pkg/truenas/truenas.go +++ b/pkg/truenas/truenas.go @@ -369,7 +369,7 @@ func nodeCSI() apps.DaemonSet { }, { Name: hostRoot.Name, - MountPath: "/", + MountPath: "/host", MountPropagation: new(core.MountPropagationBidirectional), }, },