【问题标题】:What is the maximum storage capacity for kubernetes PersistentVolumeskubernetes PersistentVolumes 的最大存储容量是多少
【发布时间】:2019-09-28 18:27:47
【问题描述】:

这是一个在 kubernetes 集群上创建 PersistentVolume 的 .yml 文件示例:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: task-pv-volume
  namespace: prisma
  labels:
    type: local
spec:
  storageClassName: manual
  capacity:
    storage: xxGi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: "/data"

存储容量能否超过集群中磁盘最小的节点上的可用存储容量?或者最大值是集群节点上可用磁盘的总和?

【问题讨论】:

    标签: kubernetes persistent-volumes mounted-volumes


    【解决方案1】:

    通常,您将pv 绑定到您的云提供商提供的外部存储卷(例如 - aws EBS),抽象为StorageClass,大小符合您的需求。集群节点来来去去,你不应该依赖它们的存储。

    快速指南:gcpawsazure

    【讨论】:

      【解决方案2】:

      hostPath 模式仅用于本地测试,因此请求的大小绝对不会做任何事情,我很确定。

      【讨论】:

        猜你喜欢
        • 2011-05-12
        • 2019-10-28
        • 2017-10-05
        • 2019-05-12
        • 1970-01-01
        • 2012-03-25
        • 1970-01-01
        • 1970-01-01
        • 2021-03-19
        相关资源
        最近更新 更多