gpt4 book ai didi

azure - 访问 Azure 文件时出现问题 - Pod 日志中未找到文件错误

转载 作者:行者123 更新时间:2023-12-03 04:21:30 24 4
gpt4 key购买 nike

我有以下配置用于从我的应用程序部署访问 Azure 文件:

volumeMounts:
- name: lhapidatasource
mountPath: /mnt/azure

我的部署已成功运行,但是当我查看尝试从我的 azure 文件位置访问文件的应用程序日志时,它显示“找不到文件”

/mnt/azure/openapidevshare/datasources/location.csv 未找到。

我的 Azure 文件已正确配置,当我从 Azure 门户查看该文件时,我的 Azure 文件位置中存在上述文件。

所以请帮助我找出问题所在。另外,我想知道是否有一种方法可以检查 Pod 内容,例如其中存在的内容,例如根据我的卷安装配置“/mnt/azure”中实际存在的内容。

最佳答案

该错误是由于容器中路径的构造方式造成的。

kubectl exec -it podname /bin/bash

此命令允许询问者手动检查路径并调整它们

关于azure - 访问 Azure 文件时出现问题 - Pod 日志中未找到文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48318876/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com