dapr-http-max-request-size
has been deprecated and updated to max-body-size
.By default, Dapr has a limit for the request body size, set to 4MB. You can change this for both HTTP and gRPC requests by defining:
dapr.io/max-body-size
annotation, or--max-body-size
flag.When running in self-hosted mode, use the --max-body-size
flag to configure Dapr to use non-default request body size:
dapr run --max-body-size 16 node app.js
On Kubernetes, set the following annotations in your deployment YAML:
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp
namespace: default
labels:
app: myapp
spec:
replicas: 1
selector:
matchLabels:
app: myapp
template:
metadata:
labels:
app: myapp
annotations:
dapr.io/enabled: "true"
dapr.io/app-id: "myapp"
dapr.io/app-port: "8000"
dapr.io/max-body-size: "16"
#...
This tells Dapr to set the maximum request body size to 16
MB for both HTTP and gRPC requests.
Dapr Kubernetes pod annotations spec