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

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

  annotations:
    kubernetes.io/ingress.class: traefik
    traefik.ingress.kubernetes.io/affinity: "true"
    traefik.ingress.kubernetes.io/load-balancer-method: drr 
    traefik.ingress.kubernetes.io/buffering: |-
      maxrequestbodybytes: 10485760
      memrequestbodybytes: 2097153
      maxresponsebodybytes: 10485761
      memresponsebodybytes: 2097152
      retryexpression: IsNetworkError() && Attempts() <= 2
上一篇:Traefik 2.0 实现灰度发布


下一篇:第十二章 Kubernetes的服务暴露插件--traefik