【发布时间】:2021-10-09 18:23:57
【问题描述】:
我现在在我的部署中定义了这些卷安装,
volumeMounts:
- name: website-storage
mountPath: /app/upload
readOnly: false
subPath: foo/upload
- name: website-storage
mountPath: /app/html
readOnly: true
subPath: foo/html/html
现在我想将另一条路径从我的 PVC 挂载到 /app/html/website-content,这就是我尝试的方式,
volumeMounts:
- name: website-storage
mountPath: /app/upload
readOnly: false
subPath: foo/upload
- name: website-storage
mountPath: /app/html
readOnly: true
subPath: foo/html/html
- name: website-storage
mountPath: /app/html/website-content
readOnly: true
subPath: foo/website-content
这不起作用,并在安装过程中出错。是否有可能做到这一点?我必须在安装之前明确创建website-content 文件夹吗?提前谢谢!
【问题讨论】:
标签: kubernetes volumes persistent-volume-claims