I want to update the ingress configuration and which will apply on ingress instance running on kuberntes cluter on gcloud.
For this I have performed two steps:
- Firstly, people ask that set both annotation in
ingress.yml
and then re-create ingress will solve the issue mentioned on this.
kubernetes.io/ingress.class: "gce" nginx.ingress.kubernetes.io/proxy-body-size: 20m
After deleting the ingress from cluster and create the ingress again also declared me unlucky.
ingress.yml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: my-ingress
namespace: default
annotations:
kubernetes.io/ingress.class: "gce"
nginx.ingress.kubernetes.io/proxy-body-size: 20m
nginx.org/client-max-body-size: "20m"
- Secondly, configure the ConfigMap file on the gcloul cluster, so that our ingress configuration will update, but come up with the negative result mentioned on this.
nginx-config.yml
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-config
namespace: default
data:
proxy-body-size: "20m"
So how can I update my ingress properties such as annotation nginx.ingress.kubernetes.io/proxy-body-size
, so that I can upload data more than 1 MB (where my cluster deployed on GKE)?
Any help would be appreciated. Thanks