"error": "Request entity too large: limit is 3145728"可能是kubernetes处理程序对大于3 MB的对象的默认响应,正如您在源代码的L305中看到的:
expectedMsgFor1MB := `etcdserver: request is too large`
expectedMsgFor2MB := `rpc error: code = ResourceExhausted desc = trying to send message larger than max`
expectedMsgFor3MB := `Request entity too large: limit is 3145728`
expectedMsgForLargeAnnotation := `metadata.annotations: Too long: must have at most 262144 bytes`
2条答案
按热度按时间drnojrws1#
此答案的来源:https://stackoverflow.com/a/60492986/12153576
"error": "Request entity too large: limit is 3145728"
可能是kubernetes处理程序对大于3 MB的对象的默认响应,正如您在源代码的L305中看到的:--max-request-bytes
标志的建议,但它对GKE集群没有任何影响,因为您在主节点上没有这样的权限。我强烈建议您考虑以下选项:
*确定您的对象是否包含未使用的引用;
*分解资源;
*请考虑使用卷装载;
有一个new API Resource: File (orBinaryData)的请求可以适用于你的情况。它是非常新鲜的,但它是很好的保持关注。
zmeyuzjn2#
请检查
chart
目录中的文件。您可能在其中包含了一些不相关的文件!