我使用以下命令通过helm部署openfaas
helm upgrade openfaas --install openfaas/opehelmnfaas --namespace default --set functionNamespace=default --set generateBasicAuth=true
一切正常工作,但当我尝试一个数据大于1,000 KB的post请求时,我将得到以下响应
<html>
<head>
<title>413 Request Entity Too Large</title>
</head>
<body>
<center>
<h1>413 Request Entity Too Large</h1>
</center>
<hr>
<center>openresty/1.15.8.1</center>
</body>
</html>
在通过helm安装时,我是否可以控制请求实体大小的阈值?
发布于 2020-02-06 16:28:21
抱歉!这个阈值实际上是在一个外部输入域上强制执行的,它可以很容易地使用yaml文件中的注释进行配置。
apiVersion: extensions/v1beta1 kind: Ingress metadata: name: {{ .Chart.Name }} namespace: {{ .Values.namespace }} labels: version: {{ .Chart.Version }} annotations: kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.size }} spec: ...
https://stackoverflow.com/questions/60098745
复制相似问题