当安装AzureFile K8S卷时,我得到一个;azureMount:SmbGlobalMapping失败“;错误
我正试图在WindowsK8S pod上装载一个当安装AzureFile K8S卷时,我得到一个;azureMount:SmbGlobalMapping失败“;错误,azure,kubernetes,Azure,Kubernetes,我正试图在WindowsK8S pod上装载一个azureFile卷,但出现了错误 卷“azure文件共享”的MountVolume.SetUp失败:azureMount: SmbGlobalMapping失败:fork/exec C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe:该 参数不正确。现在只支持SMB装载,输出:“” 有什么问题吗?机密中的azurestorageaccountkey值不正确的问题。你可以有一个秘密,比
azureFile
卷,但出现了错误
卷“azure文件共享”的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>
apiVersion:v1
种类:秘密
元数据:
名称:卷azurefile存储机密
类型:不透明
数据:
azurestorageaccountname:
azurestorageaccountkey:
让我吃惊的是Azure已经对帐户密钥进行了Base64编码,不清楚是否需要对这个秘密文件进行双重编码
答案是肯定的,你需要对它进行双重编码。如果没有,则从问题中得到错误