【问题标题】:When mounting a AzureFile K8S volume, I get a "azureMount: SmbGlobalMapping failed" error安装 AzureFile K8S 卷时,出现“azureMount: SmbGlobalMapping failed”错误
【发布时间】:2018-11-05 07:09:50
【问题描述】:

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

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

怎么了?

【问题讨论】:

    标签: azure kubernetes


    【解决方案1】:

    秘密中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 编码,并且不清楚您是否需要为这个秘密文件进行双重编码。

    答案是肯定的,你确实对它进行了双重编码。如果你不这样做,你会从问题中得到错误。

    【讨论】:

      猜你喜欢
      • 2014-01-05
      • 1970-01-01
      • 1970-01-01
      • 2017-08-01
      • 1970-01-01
      • 2014-05-07
      • 2018-11-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多