AWS EKS EFS 安装卷。尽管声称卷中有 21Gi,但 pod 有 8E(EFS 的全部可能大小)

AWS EKS EFS mounted volume. In spite 21Gi in claimed volume the pod has 8E (full possible size of EFS)

尽管在声明的卷中设置了 21Gi,但 pod 有 8E(EFS 的全部可能大小)

可以吗,存储空间有限。还是我配置有误需要修改,还是其他?

非常感谢你的帮助。

音量:

NAME                                    CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                                  
monitoring-eks-falcon-victoriametrics   21Gi       RWX            Retain           Bound    victoriametrics/victoriametrics-data

广告连播:

Filesystem                Size      Used Available Use% Mounted on
fs-efs.us-....s.com:/     8.0E         0      8.0E   0% /data

持久卷

kind: PersistentVolume
apiVersion: v1
metadata:
  name: monitoring-eks-falcon-victoriametrics
  uid: f43e12d0-77ab-4530-8c9e-cfbd3c641467
  resourceVersion: '28847'
  labels:
    Name: victoriametrics
    purpose: victoriametrics
  annotations:
    pv.kubernetes.io/bound-by-controller: 'yes'
  finalizers:
    - kubernetes.io/pv-protection
spec:
  capacity:
    storage: 21Gi
  nfs:
    server: fs-.efs.us-east-1.amazonaws.com
    path: /
  accessModes:
    - ReadWriteMany
  claimRef:
    kind: PersistentVolumeClaim
    namespace: victoriametrics
    name: victoriametrics-data
    uid: 8972e897-4e16-a64f-4afd8f90fa89
    apiVersion: v1
    resourceVersion: '28842'
  persistentVolumeReclaimPolicy: Retain
  storageClassName: efs-sc
  volumeMode: Filesystem

持久卷声明

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: victoriametrics-data
  namespace: victoriametrics
  uid: 8972e897-4e16-a64f-4afd8f90fa89
  resourceVersion: '28849'
  labels:
    Name: victoriametrics
    purpose: victoriametrics
  annotations:
    Description: Volume for Victoriametrics DB
    pv.kubernetes.io/bind-completed: 'yes'
  finalizers:
    - kubernetes.io/pvc-protection
spec:
  accessModes:
    - ReadWriteMany
  selector:
    matchLabels:
      k8s-app: victoriametrics
      purpose: victoriametrics
    matchExpressions:
      - key: k8s-app
        operator: In
        values:
          - victoriametrics
  resources:
    limits:
      storage: 21Gi
    requests:
      storage: 21Gi
  volumeName: monitoring-eks-falcon-victoriametrics
  storageClassName: efs-sc
  volumeMode: Filesystem
status:
  phase: Bound
  accessModes:
    - ReadWriteMany
  capacity:
    storage: 21Gi

Pod 部署

kind: Deployment
...
spec:
...
    spec:
      volumes:
        - name: victoriametrics-data
          persistentVolumeClaim:
            claimName: victoriametrics-data
      containers:
        - name: victoriametrics
...
          volumeMounts:
            - name: victoriametrics-data
              mountPath: /data
              mountPropagation: None
...

“8E”这个数字只是一个指标,并不是真正的配额。 AWS EFS 不支持配额(例如 FATTR4_QUOTA_AVAIL_HARD)。这通常意味着您在此坐骑上拥有“无限”space。您的规格没有问题;在 PVC 的 resources.requests.storage 中指定的数字用于匹配 PV 的 capacity.storage。这并不意味着您只能在 EFS 挂载上写入 21GB。