【发布时间】:2017-07-27 15:20:57
【问题描述】:
我们有一个 kubernetes 集群,其中有一个基于 dropwizard 的 Web 应用程序作为服务运行。此应用程序具有用于上传文件的 rest uri。它不能上传大于 1MB 的文件。我收到以下错误:
ERROR [2017-07-27 13:32:47,629] io.dropwizard.jersey.errors.LoggingExceptionMapper: Error handling a request: ea812501b414f0d9
! com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
! at [Source: <html>
! <head><title>413 Request Entity Too Large</title></head>
! <body bgcolor="white">
! <center><h1>413 Request Entity Too Large</h1></center>
! <hr><center>nginx/1.11.3</center>
! </body>
! </html>
我已经尝试了https://github.com/nginxinc/kubernetes-ingress/issues/21 中给出的建议。我已经编辑了 Ingress 以设置 proxy-body-size 注释。另外,我尝试使用 configMap 没有任何成功。我们正在使用 Kubernetes 1.5 版。如果您需要更多信息,请告诉我。
【问题讨论】:
-
您使用的是哪个入口控制器?您是否尝试过其他替代方案?
标签: kubernetes