How-To: Handle large http body requests

    By default Dapr has a limit for the request body size which is set to 4 MB, however you can change this by defining annotation or --dapr-http-max-request-size flag.

    This tells Dapr to set maximum request body size to 16 MB.

    1. apiVersion: apps/v1
    2. kind: Deployment
    3. metadata:
    4. name: myapp
    5. app: myapp
    6. spec:
    7. replicas: 1
    8. selector:
    9. matchLabels:
    10. app: myapp
    11. metadata:
    12. app: myapp
    13. annotations:
    14. dapr.io/enabled: "true"
    15. dapr.io/app-id: "myapp"
    16. dapr.io/app-port: "8000"
    17. ...