diff --git a/kubernetes-ingress/README.md b/kubernetes-ingress/README.md index ff1bff3..b9b36cd 100644 --- a/kubernetes-ingress/README.md +++ b/kubernetes-ingress/README.md @@ -509,6 +509,7 @@ A Helm `post-install` / `pre-upgrade` hook Job that applies the controller's CRD |---|---|---| | `crdjob.podAnnotations` | Annotations on the Job pod. | `{}` | | `crdjob.ttlSecondsAfterFinished` | Seconds after which the Job is garbage-collected. | `600` | +| `crdjob.activeDeadlineSeconds` | Seconds the Job may stay active before Kubernetes terminates it and marks it `DeadlineExceeded`. Omitted when unset, so the Job runs without a deadline. | _unset_ | | `crdjob.nodeSelector` / `.tolerations` / `.affinity` | Scheduling controls for the Job pod. | `{}` / `[]` / `{}` | | `crdjob.resources.requests` / `.limits` | CPU/memory requests and (optional) limits for the Job container. | `cpu: 250m`, `memory: 400Mi` (no limits) | diff --git a/kubernetes-ingress/templates/controller-crdjob.yaml b/kubernetes-ingress/templates/controller-crdjob.yaml index f04c89c..2205d3f 100644 --- a/kubernetes-ingress/templates/controller-crdjob.yaml +++ b/kubernetes-ingress/templates/controller-crdjob.yaml @@ -32,6 +32,9 @@ metadata: spec: {{- if .Values.crdjob.ttlSecondsAfterFinished }} ttlSecondsAfterFinished: {{ .Values.crdjob.ttlSecondsAfterFinished }} +{{- end }} +{{- if .Values.crdjob.activeDeadlineSeconds }} + activeDeadlineSeconds: {{ .Values.crdjob.activeDeadlineSeconds }} {{- end }} backoffLimit: 0 template: diff --git a/kubernetes-ingress/values.yaml b/kubernetes-ingress/values.yaml index b5f11a0..bc96822 100644 --- a/kubernetes-ingress/values.yaml +++ b/kubernetes-ingress/values.yaml @@ -710,6 +710,10 @@ crdjob: ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ ttlSecondsAfterFinished: 600 + ## Duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it + ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/job/#job-termination-and-cleanup + activeDeadlineSeconds: + ## Pod Node assignment ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ nodeSelector: {}