【问题标题】:Minimum volume size in GlusterFS/HeketiGlusterFS/Heketi 中的最小卷大小
【发布时间】:2018-01-29 11:12:52
【问题描述】:

我最近按照官方指南在 Kubernetes 上设置 Heketi。一切正常,除了每当我创建一个小于 2GB 的驱动器时,它会自动创建一个 2GB 的 PV。我找不到任何关于他的行为的文档。谁能请我理解这种行为?

【问题讨论】:

    标签: amazon-web-services kubernetes nfs glusterfs


    【解决方案1】:

    Heketi 创建的最小卷大小为 1GB。

    heketi(当前)中遵循的单位是以 GB 为单位的,因此例如,当您创建大小为 1.8GB 的​​卷时,它会创建 2GB 卷。

    【讨论】:

      【解决方案2】:

      https://github.com/heketi/heketi/blob/master/docs/api/api.md#create-a-volume 创建卷

      Method: POST
      Endpoint:/volumes
      Content-Type: application/json
      Response HTTP Status Code: 202, See Asynchronous Operations
      Temporary Resource Response HTTP Status Code: 303, Location header will contain /volumes/{id}. See Volume Info for JSON response.
      JSON Request:
          **size: int, Size of volume requested in GiB**
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多