Skip to content

Commit

Permalink
feat: allow to configure gateway.resources (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstefany authored Jan 24, 2024
1 parent 98288f3 commit b266af7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/apisix-ingress-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ The same for container level, you need to set:
| gateway.nginx.workerConnections | string | `"10620"` | Nginx worker connections |
| gateway.nginx.workerProcesses | string | `"auto"` | Nginx worker processes |
| gateway.nginx.workerRlimitNofile | string | `"20480"` | Nginx workerRlimitNoFile |
| gateway.resources | object | `{}` | |
| gateway.securityContext | object | `{}` | |
| gateway.tls.additionalContainerPorts | list | `[]` | Support multiple https ports, See [Configuration](https://github.com/apache/apisix/blob/0bc65ea9acd726f79f80ae0abd8f50b7eb172e3d/conf/config-default.yaml#L99) |
| gateway.tls.certCAFilename | string | `""` | Filename be used in the gateway.tls.existingCASecret |
Expand Down
3 changes: 2 additions & 1 deletion charts/apisix-ingress-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ spec:
name: prometheus
protocol: TCP
{{- end }}
resources: {}
resources:
{{- toYaml .Values.gateway.resources | nindent 12 }}
securityContext:
{{- toYaml .Values.gateway.securityContext | nindent 12 }}
volumeMounts:
Expand Down
1 change: 1 addition & 0 deletions charts/apisix-ingress-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ gateway:
errorLog: stderr
# -- Nginx error logs level
errorLogLevel: warn
resources: {}
securityContext: {}
# capabilities:
# add:
Expand Down

0 comments on commit b266af7

Please sign in to comment.