使用OLM部署操作员时,点击束尺寸限制
在使用OLM部署操作员捆绑包时,我会收到以下错误:
level=error msg="File with size ... exceeded 1048576 limit, aborting" file=/bundle/manifests/crd.yaml
Error: error loading manifests from directory: file crd.yaml bigger than total allowed limit
Usage:
opm alpha bundle extract [flags]
此尺寸限制来自哪里?如何解决?
When deploying my operator bundle using OLM I get the following error:
level=error msg="File with size ... exceeded 1048576 limit, aborting" file=/bundle/manifests/crd.yaml
Error: error loading manifests from directory: file crd.yaml bigger than total allowed limit
Usage:
opm alpha bundle extract [flags]
Where does this size limit come from and how do I get around this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
捆绑包具有尺寸限制,因为它们的清单用于创建ConfigMap,并且Kubernetes API不允许大于
〜1MB
大的配置map。以OLM版本V0.19.0
和OPM1.17.5
开始,这些值现在使用gzip
压缩,然后使用base64 < /代码>可容纳更大的捆绑包。建议是升级使用的SDK和OLM版本。
Bundles have a size limitation because their manifests are used to create a configMap, and the Kubernetes API does not allow configMaps larger than
~1MB
. Beginning with OLM versionv0.19.0
and OPM1.17.5
, these values are now compressed usingGzip
and then encoded usingBase64
to accommodate larger bundles. The recommendation is to upgrade the SDK and OLM versions used.