File tree Expand file tree Collapse file tree 5 files changed +82
-3
lines changed
charts/nginx-gateway-fabric Expand file tree Collapse file tree 5 files changed +82
-3
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ jobs:
171
171
- name : Build binary
172
172
uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
173
173
with :
174
- version : v2.9.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
174
+ version : v2.10.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
175
175
args : ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} --clean
176
176
env :
177
177
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 79
79
- name : Build binary
80
80
uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
81
81
with :
82
- version : v2.9.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
82
+ version : v2.10.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
83
83
args : build --single-target --snapshot --clean
84
84
env :
85
85
TELEMETRY_ENDPOINT : " " # disables sending telemetry
Original file line number Diff line number Diff line change 73
73
- name : Build binary
74
74
uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
75
75
with :
76
- version : v2.9.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
76
+ version : v2.10.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
77
77
args : build --single-target --snapshot --clean
78
78
env :
79
79
TELEMETRY_ENDPOINT : otel-collector-opentelemetry-collector.collector.svc.cluster.local:4317
Original file line number Diff line number Diff line change
1
+ {{- if and (eq .Values.nginxGateway.kind "deployment") .Values.nginxGateway.autoscaling.enabled -}}
2
+ apiVersion : {{ ternary "autoscaling/v2" "autoscaling/v2beta2" (.Capabilities.APIVersions.Has "autoscaling/v2") }}
3
+ kind : HorizontalPodAutoscaler
4
+ metadata :
5
+ {{- with .Values.autoscaling.annotations }}
6
+ annotations : {{ toYaml . | nindent 4 }}
7
+ {{- end }}
8
+ labels :
9
+ {{- include "nginx-gateway.labels" . | nindent 4 }}
10
+ {{- with .Values.nginxGateway.labels }}
11
+ {{- toYaml . | nindent 4 }}
12
+ {{- end }}
13
+ name : {{ include "nginx-gateway.fullname" . }}
14
+ namespace : {{ .Release.Namespace }}
15
+ spec :
16
+ scaleTargetRef :
17
+ apiVersion : apps/v1
18
+ kind : Deployment
19
+ name : {{ include "nginx-gateway.fullname" . }}
20
+ minReplicas : {{ .Values.autoscaling.minReplicas }}
21
+ maxReplicas : {{ .Values.autoscaling.maxReplicas }}
22
+ metrics :
23
+ {{- with .Values.autoscaling.targetMemoryUtilizationPercentage }}
24
+ - type : Resource
25
+ resource :
26
+ name : memory
27
+ target :
28
+ type : Utilization
29
+ averageUtilization : {{ . }}
30
+ {{- end }}
31
+ {{- with .Values.autoscaling.targetCPUUtilizationPercentage }}
32
+ - type : Resource
33
+ resource :
34
+ name : cpu
35
+ target :
36
+ type : Utilization
37
+ averageUtilization : {{ . }}
38
+ {{- end }}
39
+ {{- with .Values.autoscalingTemplate }}
40
+ {{- toYaml . | nindent 2 }}
41
+ {{- end }}
42
+ {{- with .Values.autoscaling.behavior }}
43
+ behavior :
44
+ {{- toYaml . | nindent 4 }}
45
+ {{- end }}
46
+ {{- end }}
Original file line number Diff line number Diff line change @@ -153,6 +153,37 @@ nginxGateway:
153
153
# -- The topology spread constraints for the NGINX Gateway Fabric control plane pod.
154
154
topologySpreadConstraints : []
155
155
156
+ autoscaling :
157
+ enabled : false
158
+ annotations : {}
159
+ minReplicas : 1
160
+ maxReplicas : 11
161
+ targetCPUUtilizationPercentage : 50
162
+ targetMemoryUtilizationPercentage : 50
163
+ behavior : {}
164
+ # scaleDown:
165
+ # stabilizationWindowSeconds: 300
166
+ # policies:
167
+ # - type: Pods
168
+ # value: 1
169
+ # periodSeconds: 180
170
+ # scaleUp:
171
+ # stabilizationWindowSeconds: 300
172
+ # policies:
173
+ # - type: Pods
174
+ # value: 2
175
+ # periodSeconds: 60
176
+ autoscalingTemplate : []
177
+ # Custom or additional autoscaling metrics
178
+ # ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics
179
+ # - type: Pods
180
+ # pods:
181
+ # metric:
182
+ # name: nginx_gateway_fabric_nginx_process_requests_total
183
+ # target:
184
+ # type: AverageValue
185
+ # averageValue: 10000m
186
+
156
187
metrics :
157
188
# -- Enable exposing metrics in the Prometheus format.
158
189
enable : true
@@ -218,6 +249,8 @@ nginx:
218
249
# plane will copy these secrets into any namespace where NGINX is deployed.
219
250
imagePullSecrets : []
220
251
252
+ resources : {}
253
+
221
254
# Configuration for NGINX Plus usage reporting.
222
255
usage :
223
256
# -- The name of the Secret containing the JWT for NGINX Plus usage reporting. Must exist in the same namespace
You can’t perform that action at this time.
0 commit comments