Hi,
i am a beginner with k8s and ingress. I tried to set the client-max-max-body-size of the nginx with the annotation nginx.org/client-max-body-size at the load balancer but it dont seem to work .
What do i wrong ?
I used https://github.com/nginxinc/kubernetes-ingress/tree/master/examples/customization
1 Like
Were you able to get it working with the annotation above? If so can you provide details on the config file you generated?
Add this in ingress (Load Balancing) annotation in UI or YAML
https://github.com/rancher/ingress-nginx/blob/master/docs/user-guide/annotations.md
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 50m
name: lb-app-name
spec:
rules:
- host: app.com
http:
paths:
- backend:
serviceName: sv-app-name
servicePort: 80
path: /
3 Likes
Thanks this worked perfectly!