【发布时间】:2020-03-01 01:40:04
【问题描述】:
查看Kubernetes ConfigMap size limitation 和https://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