为什么Trident守护程序集对host-dir使用"/"路径?
适用场景
Astra三端
问题解答
要访问诸如iSCSI-tools等Linux实用程序软件包、需要使用"/"路径访问host-dir。
追加信息
Run宁 格kubectl get daemonset -n <namespace> -o yaml 显示以下参数:
 ...
 hostPath:
      path: /sys
      type: Directory
      name: sys-dir
 hostPath:
     path: /
      type: Directory
      name: host-dir
 ...
 建议不要修改此参数、否则会出现发生原因挂载问题、因为无法访问iSCSI-tools:
 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