# KongIngress body-size

**URL:** https://discuss.konghq.com/t/kongingress-body-size/4352
**Category:** Questions
**Tags:** kubernetes
**Created:** [September 2, 2019, 12:59pm UTC](https://discuss.konghq.com/t/kongingress-body-size/4352 "2019-09-02T12:59:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![marpee](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/marpee/32/1278_2.png) [@marpee](https://discuss.konghq.com/u/marpee)
#### Post date: [September 2, 2019, 12:59pm UTC](https://discuss.konghq.com/t/kongingress-body-size/4352/1 "2019-09-02T12:59:33Z")

</div>

Hi.

How can I set the body-size in kongingress? And what’s the default?  
In nginx.ingress it looks like this: `nginx.ingress.kubernetes.io/proxy-body-size: "256m"`

Thanks!

---

<div class="post-metadata">

### Author: ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)
#### Post date: [September 3, 2019, 5:23pm UTC](https://discuss.konghq.com/t/kongingress-body-size/4352/2 "2019-09-03T17:23:28Z")

</div>

> [@marpee](#):
>
> proxy-body-size

You can change this by setting `KONG_CLIENT_BODY_BUFFER_SIZE`.  
Reference: [https://docs.konghq.com/1.3.x/configuration/#client\_max\_body\_size](https://docs.konghq.com/1.3.x/configuration/#client_max_body_size)

---

<div class="post-metadata">

### Author: ![marpee](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/marpee/32/1278_2.png) [@marpee](https://discuss.konghq.com/u/marpee)
#### Post date: [September 4, 2019, 7:42am UTC](https://discuss.konghq.com/t/kongingress-body-size/4352/3 "2019-09-04T07:42:20Z")

</div>

So this is a global parameter and can’t be set per ingress/service?

---

<div class="post-metadata">

### Author: ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)
#### Post date: [September 4, 2019, 4:14pm UTC](https://discuss.konghq.com/t/kongingress-body-size/4352/4 "2019-09-04T16:14:55Z")

</div>

Correct.  
You can set this variable to the max size that you would like to allow globally, and then use request-size-limiting plugin for imposing a max request size per Ingress/Service:

> **[Open-Source API Management and Microservice Management](https://docs.konghq.com/hub/kong-inc/request-size-limiting/)**
>
> Secure, Manage & Extend your APIs or Microservices with plugins for authentication, logging, rate-limiting, transformations and more.

---

<div class="post-metadata">

### Author: ![sun](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@sun](https://discuss.konghq.com/u/sun)
#### Post date: [April 22, 2021, 2:03am UTC](https://discuss.konghq.com/t/kongingress-body-size/4352/5 "2021-04-22T02:03:05Z")

</div>

How can I set the body-buffer-size per Ingress/Service in kongingress? And what’s the default?  
In nginx.ingress it looks like this: `nginx.ingress.kubernetes.io/client-body-buffer-size: "10m"`
