Why does Trident daemonset use "/" path for host-dir?
Applies to
Astra Trident
Answer
The host-dir access with "/" path is needed to access Linux utility packages like iscsi-tools.
Additional Information
Runinng kubectl get daemonset -n <namespace> -o yaml
shows the parameters:
...
hostPath:
path: /sys
type: Directory
name: sys-dir
hostPath:
path: /
type: Directory
name: host-dir
...
Modifying the parameter is not recommended and will cause mount issues as iscsi-tools will be inaccessible:
Warning FailedMount 8s (x6 over 24s) kubelet MountVolume.MountDevice failed for volume "pvc-1171fffb-9a22-4773-8fcf-236903e54a22" : rpc error: code = Internal desc = rpc error: code = Internal desc = failed to stage volume: unable to attach: open-iscsi tools not found on host