繁体   English   中英

装入AzureFile K8S卷时,出现“ azureMount:SmbGlobalMapping失败”错误

[英]When mounting a AzureFile K8S volume, I get a “azureMount: SmbGlobalMapping failed” error

我正在尝试在Windows K8S pod上挂载azureFile卷,但出现错误

卷“ azure-file-share”的MountVolume.SetUp失败:azureMount:SmbGlobalMapping失败:fork / exec C:\\ Windows \\ System32 \\ WindowsPowerShell \\ v1.0 \\ powershell.exe:参数不正确。仅支持SMB挂载现在,输出:“”

怎么了?

问题是秘密中的azurestorageaccountkey值错误。 您可以拥有一个秘密,例如:

apiVersion: v1
kind: Secret
metadata:
  name: volume-azurefile-storage-secret
type: Opaque
data:
  azurestorageaccountname: <base 64 encoded account name>
  azurestorageaccountkey: <base 64 encoded account key>

使我感到困惑的是,Azure已经以base 64为基础对帐户密钥进行编码,并且尚不清楚是否需要对该机密文件进行双重编码。

答案是肯定的,您可以对其进行双重编码。 如果不这样做,您将从问题中得到错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM