kubernetes nginx client_max_body_size

change nginx client_max_body_size ingress in kubernetes

You can change the client_max_body_size of your ingress with this:


First look inside kube-system ingress. Why is your nginx annotation prefix? (kismatic use `ingress.kubernetes.io`

Then, inside your ingress, add the annotation like this:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/proxy-body-size: 8m
name: qa-elastic
labels:
environment: elastic
app: elastic-ingest
area: devs
role: nosql
version: "6.3.0"
spec:
rules:
- host: qa-elastic
http:
paths:
- path: /
backend:
serviceName: elastic-master
servicePort: 9200
- host: qa-elastic.example.com
http:
paths:
- backend:
serviceName: elastic-master
servicePort: 9200
path: /