当前位置:   article > 正文

traefik.ingress.kubernetes.io/buffering上传文件大小限制_traefik 413

traefik 413

文件上传出现413 too large 异常

以下配置需要加到service中,而不是ingress中

  1. annotations:
  2. kubernetes.io/ingress.class: traefik
  3. traefik.ingress.kubernetes.io/affinity: "true"
  4. traefik.ingress.kubernetes.io/load-balancer-method: drr
  5. traefik.ingress.kubernetes.io/buffering: |-
  6. maxrequestbodybytes: 10485760
  7. memrequestbodybytes: 2097153
  8. maxresponsebodybytes: 10485761
  9. memresponsebodybytes: 2097152
  10. retryexpression: IsNetworkError() && Attempts() <= 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/神奇cpp/article/detail/1012555
推荐阅读
相关标签
  

闽ICP备14008679号