gpt4 book ai didi

azure - 使用标准 LRS 存储类调整 AKS 中的 PV/PVC 大小后,Artifactory > 监控 > 存储部分仍然显示旧的存储空间。怎么修?

转载 作者:行者123 更新时间:2023-12-03 05:28:28 26 4
gpt4 key购买 nike

问题:

调整 PV 大小后需要增加文件存储大小,但文件存储大小没有改变,即使我将 PV/PVC 设置为 800gi 或 300gi,它仍然停留在 205

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: artifactory-pv-claim
namespace: test
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 250Gi
volumeMode: Filesystem
storageClassName: "custom-artifactory"

最佳答案

要调整 PVC 的大小,您可以编辑 PVC 以更改存储请求以请求更多空间。但为了使更新有效,here指明了方向:

File system expansion must be triggered by terminating the pod usingthe volume. More specifically:

Edit the PVC to request more space. Once underlying volume has beenexpanded by the storage provider, then the PersistentVolume objectwill reflect the updated size and the PVC will have theFileSystemResizePending condition.

这是我的测试截图:

更改前:

enter image description here

更改后,重新创建 Pod 之前:

enter image description here

重新创建 Pod 后:

enter image description here

关于azure - 使用标准 LRS 存储类调整 AKS 中的 PV/PVC 大小后,Artifactory > 监控 > 存储部分仍然显示旧的存储空间。怎么修?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66990432/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com