跳转到主内容

为什么Trident守护程序集对host-dir使用"/"路径?

Views:
Visibility:
Public
Votes:
0
Category:
trident-kubernetes
Specialty:
snapx
Last Updated:

适用场景

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

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.