Skip to content

Commit f8e8f6a

Browse files
[sophora-server] docs: document useful annotations for ingress-nginx (timeout) (#153)
* sophora-server: document useful annotations for ingress-nginx (timeout) * increase chart version
1 parent 5e6a60a commit f8e8f6a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

charts/sophora-server/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 2.8.1
18+
version: 2.8.2
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/sophora-server/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,20 @@ For the sidecar to work, the server requires a service account with the permissi
107107
in the namespace the server runs in. The SA, Role and Role Binding are created automatically by this chart.
108108
The creation of these resources can be controlled with the `serviceAccount:` section in the values file.
109109

110+
#### Ingress with Ingress NGINX Controller
111+
112+
When using `ingress-nginx` you can set the following annotations. The `proxy-*-timeout` allows long running server requests like complex queries to run. The [default timeout of nginx](http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_read_timeout) is 60 seconds which may not work for all cases and repository sizes. The `client-body-buffer-size` allows larger responses to be handled in memory.
113+
114+
```yaml
115+
ingress:
116+
ingressClassName: "nginx"
117+
enabled: true
118+
annotations:
119+
nginx.ingress.kubernetes.io/client-body-buffer-size: 2m
120+
nginx.ingress.kubernetes.io/proxy-send-timeout: "300"
121+
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
122+
```
123+
110124
### Postgres native sidecar (k8s 1.29+)
111125

112126
All Sophora cluster server since version 5 and all Sophora staging server since version 6 require a postgres database.

0 commit comments

Comments
 (0)