注释proxy-body-size在kubernete nginx-ingress中不起作用

annotation proxy-body-size doesn't work in kubernete nginx-ingress

我已经按照文档中的描述使用了proxy-body-size项目,并重新创建了我的ingress.But,它对ingress-controller没有影响。

1
2
3
4
5
6
7
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: fileupload-ingress
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: 100m
    nginx.org/rewrites:"serviceName=fileupload-service rewrite=/;"

然后我更改了configmap来更改proxy-body-size。但是它仍然无法在全球范围内使用。

1
2
3
4
5
6
7
kind: ConfigMap
apiVersion: v1
metadata:
  name: nginx-config
  namespace: nginx-ingress
data:
  proxy-body-size:"100m"

这是文件
https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md#rewrite

我的入口有什么问题..帮助!!!
在此处输入图片说明


有不同的入口控制器,它们的注释也有所不同。
因此对于kubernetes/ingress-nginx,注释以nginx.ingress开头,对于
nginxinc/kubernetes注释以nginx.org开头。

这也是一个很好的文档,显示了它们之间的更多差异。