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 45e84a5  feat: support setting resources for the ingress pod (#851)
45e84a5 is described below

commit 45e84a55d2d0ebb2fd659158f8083aba633b8eea
Author: AlinsRan <alins...@apache.org>
AuthorDate: Wed Jul 16 11:17:35 2025 +0800

    feat: support setting resources for the ingress pod (#851)
---
 charts/apisix-ingress-controller/Chart.yaml                | 2 +-
 charts/apisix-ingress-controller/README.md                 | 1 +
 charts/apisix-ingress-controller/templates/deployment.yaml | 7 +------
 charts/apisix-ingress-controller/values.yaml               | 2 ++
 4 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/charts/apisix-ingress-controller/Chart.yaml 
b/charts/apisix-ingress-controller/Chart.yaml
index 3387dfd..5d43c16 100644
--- a/charts/apisix-ingress-controller/Chart.yaml
+++ b/charts/apisix-ingress-controller/Chart.yaml
@@ -24,7 +24,7 @@ keywords:
   - nginx
   - crd
 type: application
-version: 1.0.2
+version: 1.0.3
 appVersion: 2.0.0-rc2
 sources:
   - https://github.com/apache/apisix-helm-chart
diff --git a/charts/apisix-ingress-controller/README.md 
b/charts/apisix-ingress-controller/README.md
index 73dd8e6..889256f 100644
--- a/charts/apisix-ingress-controller/README.md
+++ b/charts/apisix-ingress-controller/README.md
@@ -136,6 +136,7 @@ The same for container level, you need to set:
 | deployment.podAnnotations | object | `{}` |  |
 | deployment.podSecurityContext | object | `{}` |  |
 | deployment.replicas | int | `1` |  |
+| deployment.resources | object | `{}` | Set pod resource requests & limits |
 | deployment.tolerations | list | `[]` |  |
 | deployment.topologySpreadConstraints | list | `[]` | Topology Spread 
Constraints for pod assignment spread across your cluster among failure-domains 
ref: 
https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
 |
 | fullnameOverride | string | `""` |  |
diff --git a/charts/apisix-ingress-controller/templates/deployment.yaml 
b/charts/apisix-ingress-controller/templates/deployment.yaml
index b1a24e7..2270537 100644
--- a/charts/apisix-ingress-controller/templates/deployment.yaml
+++ b/charts/apisix-ingress-controller/templates/deployment.yaml
@@ -71,12 +71,7 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
         resources:
-          limits:
-            cpu: 500m
-            memory: 128Mi
-          requests:
-            cpu: 10m
-            memory: 64Mi
+          {{- toYaml .Values.deployment.resources | nindent 10 }}
         securityContext:
           {{- toYaml .Values.deployment.podSecurityContext | nindent 10 }}
       {{- with .Values.deployment.nodeSelector }}
diff --git a/charts/apisix-ingress-controller/values.yaml 
b/charts/apisix-ingress-controller/values.yaml
index 497616f..444694e 100644
--- a/charts/apisix-ingress-controller/values.yaml
+++ b/charts/apisix-ingress-controller/values.yaml
@@ -61,6 +61,8 @@ deployment:
     repository: apache/apisix-ingress-controller
     pullPolicy: IfNotPresent
     tag: "2.0.0-rc2"
+  # -- Set pod resource requests & limits
+  resources: {}
 
 config:
   logLevel: "info"

Reply via email to