Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当安装AzureFile K8S卷时,我得到一个;azureMount:SmbGlobalMapping失败“;错误_Azure_Kubernetes - Fatal编程技术网

当安装AzureFile K8S卷时,我得到一个;azureMount:SmbGlobalMapping失败“;错误

当安装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值不正确的问题。你可以有一个秘密,比

我正试图在WindowsK8S pod上装载一个
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编码,不清楚是否需要对这个秘密文件进行双重编码

答案是肯定的,你需要对它进行双重编码。如果没有,则从问题中得到错误