使用标准 LRS 存储 class 在 AKS 中调整大小 PV/PVC 后,Artifactory > 监控 > 存储部分仍然显示旧存储 space。怎么修?

After resizing PV/PVC in AKS using standard LRS storage class, Artifactory > monitoring > storage section still shows old storage space. How to fix?

问题:

调整 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 以将存储请求更改为请求更多 space。但要使更新有效,here 显示方式:

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

Edit the PVC to request more space. Once underlying volume has been expanded by the storage provider, then the PersistentVolume object will reflect the updated size and the PVC will have the FileSystemResizePending condition.

这是我的测试截图:

变更前:

更改后,但在重新创建 pod 之前:

重新创建 pod 后: