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:
171171 - name : Build binary
172172 uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
173173 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
175175 args : ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} --clean
176176 env :
177177 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 7979 - name : Build binary
8080 uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
8181 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
8383 args : build --single-target --snapshot --clean
8484 env :
8585 TELEMETRY_ENDPOINT : " " # disables sending telemetry
Original file line number Diff line number Diff line change 7373 - name : Build binary
7474 uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
7575 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
7777 args : build --single-target --snapshot --clean
7878 env :
7979 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:
153153 # -- The topology spread constraints for the NGINX Gateway Fabric control plane pod.
154154 topologySpreadConstraints : []
155155
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+
156187 metrics :
157188 # -- Enable exposing metrics in the Prometheus format.
158189 enable : true
@@ -218,6 +249,8 @@ nginx:
218249 # plane will copy these secrets into any namespace where NGINX is deployed.
219250 imagePullSecrets : []
220251
252+ resources : {}
253+
221254 # Configuration for NGINX Plus usage reporting.
222255 usage :
223256 # -- 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