我正在使用带有Kubernetes orchestrator和Windows代理的Azure ACS。
但是当我尝试使用azureFile卷时,我总是遇到一个问题,它似乎永远找不到我的份额。
卷仍然未知,当尝试浏览网站时,它拒绝访问:

但这可能是因为文件夹是空的。
我会给你看我的.yaml文件和存储结构,我很确定我的秘密是正确的,仔细检查一下。

pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: azurepod
labels:
Volumes: ok
spec:
containers:
- image: XXXX
name: aspvolumes
volumeMounts:
- mountPath: C:\site
name: asp-website-volume
imagePullSecrets:
- name: crcatregistry
nodeSelector:
OS: windows
volumes:
- name: asp-website-volume
azureFile:
secretName: azure-secret
shareName: asptestsite
readOnly: false发布于 2017-10-24 19:55:56
windows节点上的Windows文件挂载还没有准备好,代码已经合并到v1.9中,参见https://github.com/Azure/kubernetes/pull/11,这个功能依赖于一个新的k8s版本,这个版本还没有发布。
https://stackoverflow.com/questions/42620712
复制相似问题