Skip to content

Commit 779f332

Browse files
authored
feat: support setting resources for the ingress pod (#193)
1 parent 5a6181c commit 779f332

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

charts/ingress-controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords:
66
- api7
77
- crd
88
type: application
9-
version: 0.1.7
9+
version: 0.1.8
1010
appVersion: 2.0.3
1111
sources:
1212
- https://github.com/api7/api7-helm-chart

charts/ingress-controller/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# api7-ingress-controller
22

3-
![Version: 0.1.7](https://img.shields.io/badge/Version-0.1.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.3](https://img.shields.io/badge/AppVersion-2.0.3-informational?style=flat-square)
3+
![Version: 0.1.8](https://img.shields.io/badge/Version-0.1.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.3](https://img.shields.io/badge/AppVersion-2.0.3-informational?style=flat-square)
44

55
Ingress Controller for API7
66

@@ -38,6 +38,7 @@ Ingress Controller for API7
3838
| deployment.podAnnotations | object | `{}` | |
3939
| deployment.podSecurityContext | object | `{}` | |
4040
| deployment.replicas | int | `1` | |
41+
| deployment.resources | object | `{}` | Set pod resource requests & limits |
4142
| deployment.tolerations | list | `[]` | |
4243
| deployment.topologySpreadConstraints | list | `[]` | |
4344
| fullnameOverride | string | `""` | |

charts/ingress-controller/templates/deployment.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ spec:
5555
initialDelaySeconds: 5
5656
periodSeconds: 10
5757
resources:
58-
limits:
59-
cpu: 500m
60-
memory: 128Mi
61-
requests:
62-
cpu: 10m
63-
memory: 64Mi
58+
{{- toYaml .Values.deployment.resources | nindent 10 }}
6459
securityContext:
6560
{{- toYaml .Values.deployment.podSecurityContext | nindent 10 }}
6661
{{- with .Values.deployment.nodeSelector }}

charts/ingress-controller/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ deployment:
3232
repository: api7/api7-ingress-controller
3333
pullPolicy: IfNotPresent
3434
tag: "2.0.3"
35+
# -- Set pod resource requests & limits
36+
resources: {}
3537

3638
config:
3739
logLevel: "info"

0 commit comments

Comments
 (0)