|
14 | 14 |
|
15 | 15 | ## Prerequisites |
16 | 16 |
|
17 | | -- DING binary `>= v0.7.0` — see [install](../install.md). The recipe pulls the official container image `ghcr.io/ding-labs/ding:v0.7.0` (multi-arch, scratch base) into your Pod via an initContainer; no need to bake DING into your workload image. |
| 17 | +- DING binary `>= v0.10.0` — see [install](../install.md). The recipe pulls the official container image `ghcr.io/ding-labs/ding:v0.10.0` (multi-arch, scratch base) into your Pod via an initContainer; no need to bake DING into your workload image. |
18 | 18 | - A Kubernetes cluster `>= 1.21` for the primary wrapper pattern below. The sidecar alternative documented in [Configuration](#sidecar-alternative-k8s-129) requires `>= 1.29` for native sidecar lifecycle. |
19 | 19 | - `kubectl` access to a namespace where you can create Jobs, ConfigMaps, and Secrets. |
20 | 20 | - A notifier endpoint (Slack webhook URL or custom webhook) you can store in a Kubernetes Secret. |
|
58 | 58 | match: |
59 | 59 | metric: run.exit |
60 | 60 | condition: value > 0 |
61 | | - message: "{{ .pod }} (Job {{ .job_name }}) failed with exit {{ .exit_code }}" |
| 61 | + message: "{{ .pod }} (Job {{ .job_name }}) failed with exit {{ .exit_code }} after {{ .duration_seconds }}s" |
62 | 62 | alert: |
63 | 63 | - notifier: slack |
64 | 64 | --- |
|
82 | 82 | name: ding-config |
83 | 83 | initContainers: |
84 | 84 | - name: install-ding |
85 | | - image: ghcr.io/ding-labs/ding:v0.7.0 |
| 85 | + image: ghcr.io/ding-labs/ding:v0.10.0 |
86 | 86 | # `ding install` self-copies the binary — works against the FROM-scratch |
87 | 87 | # release image (no /bin/sh available). Added in DING v0.5.1. |
88 | 88 | command: ["/ding", "install", "/shared/ding"] |
@@ -184,7 +184,7 @@ spec: |
184 | 184 | spec: |
185 | 185 | initContainers: |
186 | 186 | - name: ding |
187 | | - image: ghcr.io/ding-labs/ding:v0.7.0 |
| 187 | + image: ghcr.io/ding-labs/ding:v0.10.0 |
188 | 188 | restartPolicy: Always # native sidecar — K8s 1.29+ |
189 | 189 | command: ["/ding", "serve", "--config", "/etc/ding/ding.yaml"] |
190 | 190 | # ...volumeMounts for config + downward-API env block |
@@ -225,7 +225,7 @@ rules: |
225 | 225 | - name: job_failed |
226 | 226 | match: { metric: run.exit } |
227 | 227 | condition: value > 0 |
228 | | - message: "Job failed (exit {{ .exit_code }})" |
| 228 | + message: "Job failed (exit {{ .exit_code }} after {{ .duration_seconds }}s)" |
229 | 229 | alert: |
230 | 230 | - notifier: k8s |
231 | 231 | ``` |
|
0 commit comments