You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/en/open_source/upgrading/2.53.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,17 @@
2
2
title: 'Upgrading to DefectDojo Version 2.53.x'
3
3
toc_hide: true
4
4
weight: -20251103
5
-
description: Helm chart changes for initializer annotations.
5
+
description: Helm chart changes
6
+
6
7
---
7
8
8
9
## Helm Chart Changes
9
10
10
-
This release introduces an important change to the Helm chart configuration for the initializer job.
11
+
This release introduces an important change to the Helm chart configuration for the initializer job and support for HPA and PDB.
12
+
13
+
### New values
14
+
15
+
Added Helm chart support for Celery and Django deployments for Horizontal Pod Autoscaler using `.autoscaling` fields under each section. And Pod Disruption Budget using `.podDisruptionBudget` for any of Celery Beat/Worker or Django deploy
| celery.worker.terminationGracePeriodSeconds | int | `300` | |
590
593
| celery.worker.tolerations | list | `[]` | |
591
594
| cloudsql | object | `{"containerSecurityContext":{},"enable_iam_login":false,"enabled":false,"extraEnv":[],"extraVolumeMounts":[],"image":{"pullPolicy":"IfNotPresent","repository":"gcr.io/cloudsql-docker/gce-proxy","tag":"1.37.9"},"instance":"","resources":{},"use_private_ip":false,"verbose":true}` | Google CloudSQL support in GKE via gce-proxy |
592
595
| cloudsql.containerSecurityContext | object | `{}` | Optional: security context for the CloudSQL proxy container. |
@@ -612,6 +615,7 @@ A Helm chart for Kubernetes to install DefectDojo
| django.podDisruptionBudget | object | `{"enabled":false,"minAvailable":"50%","unhealthyPodEvictionPolicy":"AlwaysAllow"}` | Configure pod disruption budgets for django ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget |
642
647
| django.podSecurityContext | object | `{"fsGroup":1001}` | Pod security context for the Django pods. |
643
648
| django.replicas | int | `1` | |
644
649
| django.service.annotations | object | `{}` | |
645
650
| django.service.type | string | `""` | |
646
651
| django.strategy | object | `{}` | |
652
+
| django.terminationGracePeriodSeconds | int | `60` | |
647
653
| django.tolerations | list | `[]` | |
648
654
| django.uwsgi.appSettings.maxFd | int | `0` | Use this value to set the maximum number of file descriptors. If set to 0 will be detected by uwsgi e.g. 102400 |
649
655
| django.uwsgi.appSettings.processes | int | `4` | |
Copy file name to clipboardExpand all lines: helm/defectdojo/values.schema.json
+87-1Lines changed: 87 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,30 @@
181
181
"automountServiceAccountToken": {
182
182
"type": "boolean"
183
183
},
184
+
"autoscaling": {
185
+
"description": "Autoscaling configuration for Celery worker deployment.",
186
+
"type": "object",
187
+
"properties": {
188
+
"behavior": {
189
+
"type": "object"
190
+
},
191
+
"enabled": {
192
+
"type": "boolean"
193
+
},
194
+
"maxReplicas": {
195
+
"type": "integer"
196
+
},
197
+
"minReplicas": {
198
+
"type": "integer"
199
+
},
200
+
"targetCPUUtilizationPercentage": {
201
+
"type": "integer"
202
+
},
203
+
"targetMemoryUtilizationPercentage": {
204
+
"type": "integer"
205
+
}
206
+
}
207
+
},
184
208
"containerSecurityContext": {
185
209
"description": "Container security context for the Celery worker containers.",
186
210
"type": "object"
@@ -227,9 +251,24 @@
227
251
"type": "object"
228
252
},
229
253
"podAnnotations": {
230
-
"description": "Annotations for the Celery beat pods.",
254
+
"description": "Annotations for the Celery worker pods.",
231
255
"type": "object"
232
256
},
257
+
"podDisruptionBudget": {
258
+
"description": "Configure pod disruption budgets for Celery worker ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget",
259
+
"type": "object",
260
+
"properties": {
261
+
"enabled": {
262
+
"type": "boolean"
263
+
},
264
+
"minAvailable": {
265
+
"type": "string"
266
+
},
267
+
"unhealthyPodEvictionPolicy": {
268
+
"type": "string"
269
+
}
270
+
}
271
+
},
233
272
"podSecurityContext": {
234
273
"description": "Pod security context for the Celery worker pods.",
235
274
"type": "object"
@@ -272,6 +311,10 @@
272
311
"description": "Enable startup probe for Celery worker container.",
273
312
"type": "object"
274
313
},
314
+
"terminationGracePeriodSeconds": {
315
+
"description": "Termination grace period seconds for Celery worker pods.",
316
+
"type": "integer"
317
+
},
275
318
"tolerations": {
276
319
"type": "array"
277
320
}
@@ -431,6 +474,30 @@
431
474
"automountServiceAccountToken": {
432
475
"type": "boolean"
433
476
},
477
+
"autoscaling": {
478
+
"description": "Autoscaling configuration for the Django deployment.",
479
+
"type": "object",
480
+
"properties": {
481
+
"behavior": {
482
+
"type": "object"
483
+
},
484
+
"enabled": {
485
+
"type": "boolean"
486
+
},
487
+
"maxReplicas": {
488
+
"type": "integer"
489
+
},
490
+
"minReplicas": {
491
+
"type": "integer"
492
+
},
493
+
"targetCPUUtilizationPercentage": {
494
+
"type": "integer"
495
+
},
496
+
"targetMemoryUtilizationPercentage": {
497
+
"type": "integer"
498
+
}
499
+
}
500
+
},
434
501
"extraEnv": {
435
502
"description": "Additional environment variables injected to all Django containers and initContainers.",
436
503
"type": "array"
@@ -596,6 +663,21 @@
596
663
"nodeSelector": {
597
664
"type": "object"
598
665
},
666
+
"podDisruptionBudget": {
667
+
"description": "Configure pod disruption budgets for django ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget",
668
+
"type": "object",
669
+
"properties": {
670
+
"enabled": {
671
+
"type": "boolean"
672
+
},
673
+
"minAvailable": {
674
+
"type": "string"
675
+
},
676
+
"unhealthyPodEvictionPolicy": {
677
+
"type": "string"
678
+
}
679
+
}
680
+
},
599
681
"podSecurityContext": {
600
682
"description": "Pod security context for the Django pods.",
601
683
"type": "object",
@@ -622,6 +704,10 @@
622
704
"strategy": {
623
705
"type": "object"
624
706
},
707
+
"terminationGracePeriodSeconds": {
708
+
"description": "Termination grace period seconds for django pods.",
0 commit comments