This is an automated email from the ASF dual-hosted git repository.
alinsran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new b266af7 feat: allow to configure gateway.resources (#694)
b266af7 is described below
commit b266af75f801784dc37bea2479e96932b36e173e
Author: Martin Štefany <[email protected]>
AuthorDate: Wed Jan 24 07:14:53 2024 +0100
feat: allow to configure gateway.resources (#694)
---
charts/apisix-ingress-controller/README.md | 1 +
charts/apisix-ingress-controller/templates/deployment.yaml | 3 ++-
charts/apisix-ingress-controller/values.yaml | 1 +
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/charts/apisix-ingress-controller/README.md
b/charts/apisix-ingress-controller/README.md
index 4d67cfe..2869bc8 100644
--- a/charts/apisix-ingress-controller/README.md
+++ b/charts/apisix-ingress-controller/README.md
@@ -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 |
diff --git a/charts/apisix-ingress-controller/templates/deployment.yaml
b/charts/apisix-ingress-controller/templates/deployment.yaml
index f8ed32b..76d7485 100644
--- a/charts/apisix-ingress-controller/templates/deployment.yaml
+++ b/charts/apisix-ingress-controller/templates/deployment.yaml
@@ -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:
diff --git a/charts/apisix-ingress-controller/values.yaml
b/charts/apisix-ingress-controller/values.yaml
index 3f9b842..e0b4447 100644
--- a/charts/apisix-ingress-controller/values.yaml
+++ b/charts/apisix-ingress-controller/values.yaml
@@ -245,6 +245,7 @@ gateway:
errorLog: stderr
# -- Nginx error logs level
errorLogLevel: warn
+ resources: {}
securityContext: {}
# capabilities:
# add: