【问题标题】:Why do comments in the yaml for Kubernetes ConfigMap count towards the unofficial 1 MB size limit?为什么 Kubernetes ConfigMap 的 yaml 中的注释计入非官方的 1 MB 大小限制?
【发布时间】:2020-03-01 01:40:04
【问题描述】:

查看Kubernetes ConfigMap size limitationhttps://github.com/kubernetes/kubernetes/issues/19781,由于 etcd 的限制,Kubernetes 中 ConfigMap 资源的大小限制似乎为 1 MB。但是,为什么一个人的 ConfigMap 资源的 YAML 中的 cmets 会计入大小和 1 MB 的限制?

cmets 指的是示例 ConfigMap yaml 文件中的以下内容:

---
kind: ConfigMap
apiVersion: v1
metadata:
  name: my-configmap
  namespace: default
data:
  # Comment lines here that do not impact the ConfigMap in terms of actual value
  # or the resource but seem to count towards the 1 MB size limit
  key: val

【问题讨论】:

    标签: kubernetes etcd configmap


    【解决方案1】:

    1MB 限制不是对您的数据的限制,而是对存储在 etcd 中的整个 ConfigMap 对象的限制。

    【讨论】:

      猜你喜欢
      • 2019-03-31
      • 1970-01-01
      • 2019-11-26
      • 2015-04-23
      • 1970-01-01
      • 1970-01-01
      • 2022-01-01
      • 2019-09-02
      • 1970-01-01
      相关资源
      最近更新 更多