Skip to content

Commit 1fe6182

Browse files
authored
update link to Kubernetes Jobs documentation (kedacore#1193)
* update link to Kubernetes Jobs documentation Signed-off-by: Tom Crasset <[email protected]> * fix the link to the job template Signed-off-by: Tom Crasset <[email protected]> --------- Signed-off-by: Tom Crasset <[email protected]>
1 parent f2f24c9 commit 1fe6182

File tree

15 files changed

+72
-71
lines changed

15 files changed

+72
-71
lines changed

content/docs/1.4/concepts/scaling-jobs.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ metadata:
2929
spec:
3030
scaleType: job
3131
jobTargetRef:
32-
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
33-
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
32+
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
33+
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
3434
activeDeadlineSeconds: 600 # Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
3535
backoffLimit: 6 # Specifies the number of retries before marking this job failed. Defaults to 6
3636
template:
37-
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/)
37+
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/job)
3838
pollingInterval: 30 # Optional. Default: 30 seconds
3939
cooldownPeriod: 300 # Optional. Default: 300 seconds
4040
minReplicaCount: 0 # Optional. Default: 0

content/docs/1.5/concepts/scaling-jobs.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ metadata:
2929
spec:
3030
scaleType: job
3131
jobTargetRef:
32-
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
33-
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
32+
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
33+
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
3434
activeDeadlineSeconds: 600 # Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
3535
backoffLimit: 6 # Specifies the number of retries before marking this job failed. Defaults to 6
3636
template:
37-
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/)
37+
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/job/)
38+
3839
pollingInterval: 30 # Optional. Default: 30 seconds
3940
cooldownPeriod: 300 # Optional. Default: 300 seconds
4041
minReplicaCount: 0 # Optional. Default: 0

content/docs/2.0/concepts/scaling-jobs.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ metadata:
2929
name: {scaled-job-name}
3030
spec:
3131
jobTargetRef:
32-
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
33-
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
32+
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
33+
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
3434
activeDeadlineSeconds: 600 # Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
3535
backoffLimit: 6 # Specifies the number of retries before marking this job failed. Defaults to 6
3636
template:
37-
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/)
37+
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/job)
3838
pollingInterval: 30 # Optional. Default: 30 seconds
3939
successfulJobsHistoryLimit: 5 # Optional. Default: 100. How many completed jobs should be kept.
4040
failedJobsHistoryLimit: 5 # Optional. Default: 100. How many failed jobs should be kept.
@@ -54,8 +54,8 @@ You can find all supported triggers [here](../scalers).
5454

5555
```yaml
5656
jobTargetRef:
57-
parallelism: 1 # Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
58-
completions: 1 # Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
57+
parallelism: 1 # Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
58+
completions: 1 # Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
5959
activeDeadlineSeconds: 600 # Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
6060
backoffLimit: 6 # Specifies the number of retries before marking this job failed. Defaults to 6
6161
```

content/docs/2.1/concepts/scaling-jobs.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ metadata:
2929
name: {scaled-job-name}
3030
spec:
3131
jobTargetRef:
32-
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
33-
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
32+
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
33+
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
3434
activeDeadlineSeconds: 600 # Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
3535
backoffLimit: 6 # Specifies the number of retries before marking this job failed. Defaults to 6
3636
template:
37-
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/)
37+
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/job)
3838
pollingInterval: 30 # Optional. Default: 30 seconds
3939
successfulJobsHistoryLimit: 5 # Optional. Default: 100. How many completed jobs should be kept.
4040
failedJobsHistoryLimit: 5 # Optional. Default: 100. How many failed jobs should be kept.
@@ -54,8 +54,8 @@ You can find all supported triggers [here](../scalers).
5454

5555
```yaml
5656
jobTargetRef:
57-
parallelism: 1 # Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
58-
completions: 1 # Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
57+
parallelism: 1 # Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
58+
completions: 1 # Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
5959
activeDeadlineSeconds: 600 # Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
6060
backoffLimit: 6 # Specifies the number of retries before marking this job failed. Defaults to 6
6161
```

content/docs/2.10/concepts/scaling-jobs.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ metadata:
2929
name: {scaled-job-name}
3030
spec:
3131
jobTargetRef:
32-
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
33-
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
32+
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
33+
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
3434
activeDeadlineSeconds: 600 # Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
3535
backoffLimit: 6 # Specifies the number of retries before marking this job failed. Defaults to 6
3636
template:
37-
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/)
37+
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/job)
3838
pollingInterval: 30 # Optional. Default: 30 seconds
3939
successfulJobsHistoryLimit: 5 # Optional. Default: 100. How many completed jobs should be kept.
4040
failedJobsHistoryLimit: 5 # Optional. Default: 100. How many failed jobs should be kept.
@@ -64,8 +64,8 @@ You can find all supported triggers [here](../scalers).
6464

6565
```yaml
6666
jobTargetRef:
67-
parallelism: 1 # Optional. Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
68-
completions: 1 # Optional. Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
67+
parallelism: 1 # Optional. Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
68+
completions: 1 # Optional. Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
6969
activeDeadlineSeconds: 600 # Optional. Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
7070
backoffLimit: 6 # Optional. Specifies the number of retries before marking this job failed. Defaults to 6
7171
```

content/docs/2.11/concepts/scaling-jobs.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ metadata:
3131
autoscaling.keda.sh/paused: true # Optional. Use to pause autoscaling of Jobs
3232
spec:
3333
jobTargetRef:
34-
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
35-
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
34+
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
35+
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
3636
activeDeadlineSeconds: 600 # Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
3737
backoffLimit: 6 # Specifies the number of retries before marking this job failed. Defaults to 6
3838
template:
39-
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/)
39+
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/job)
4040
pollingInterval: 30 # Optional. Default: 30 seconds
4141
successfulJobsHistoryLimit: 5 # Optional. Default: 100. How many completed jobs should be kept.
4242
failedJobsHistoryLimit: 5 # Optional. Default: 100. How many failed jobs should be kept.
@@ -66,8 +66,8 @@ You can find all supported triggers [here](../scalers).
6666

6767
```yaml
6868
jobTargetRef:
69-
parallelism: 1 # Optional. Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
70-
completions: 1 # Optional. Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
69+
parallelism: 1 # Optional. Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
70+
completions: 1 # Optional. Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
7171
activeDeadlineSeconds: 600 # Optional. Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
7272
backoffLimit: 6 # Optional. Specifies the number of retries before marking this job failed. Defaults to 6
7373
```

content/docs/2.12/concepts/scaling-jobs.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ metadata:
3131
autoscaling.keda.sh/paused: true # Optional. Use to pause autoscaling of Jobs
3232
spec:
3333
jobTargetRef:
34-
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
35-
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
34+
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
35+
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
3636
activeDeadlineSeconds: 600 # Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
3737
backoffLimit: 6 # Specifies the number of retries before marking this job failed. Defaults to 6
3838
template:
39-
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/)
39+
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/job)
4040
pollingInterval: 30 # Optional. Default: 30 seconds
4141
successfulJobsHistoryLimit: 5 # Optional. Default: 100. How many completed jobs should be kept.
4242
failedJobsHistoryLimit: 5 # Optional. Default: 100. How many failed jobs should be kept.
@@ -66,8 +66,8 @@ You can find all supported triggers [here](../scalers).
6666

6767
```yaml
6868
jobTargetRef:
69-
parallelism: 1 # Optional. Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
70-
completions: 1 # Optional. Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
69+
parallelism: 1 # Optional. Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
70+
completions: 1 # Optional. Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
7171
activeDeadlineSeconds: 600 # Optional. Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
7272
backoffLimit: 6 # Optional. Specifies the number of retries before marking this job failed. Defaults to 6
7373
```

content/docs/2.2/concepts/scaling-jobs.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ metadata:
2929
name: {scaled-job-name}
3030
spec:
3131
jobTargetRef:
32-
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
33-
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism)
32+
parallelism: 1 # [max number of desired pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
33+
completions: 1 # [desired number of successfully finished pods](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism)
3434
activeDeadlineSeconds: 600 # Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
3535
backoffLimit: 6 # Specifies the number of retries before marking this job failed. Defaults to 6
3636
template:
37-
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/)
37+
# describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/job)
3838
pollingInterval: 30 # Optional. Default: 30 seconds
3939
successfulJobsHistoryLimit: 5 # Optional. Default: 100. How many completed jobs should be kept.
4040
failedJobsHistoryLimit: 5 # Optional. Default: 100. How many failed jobs should be kept.
@@ -54,8 +54,8 @@ You can find all supported triggers [here](../scalers).
5454

5555
```yaml
5656
jobTargetRef:
57-
parallelism: 1 # Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
58-
completions: 1 # Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#controlling-parallelism))
57+
parallelism: 1 # Max number of desired instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
58+
completions: 1 # Desired number of successfully finished instances ([docs](https://kubernetes.io/docs/concepts/workloads/controllers/job/#controlling-parallelism))
5959
activeDeadlineSeconds: 600 # Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
6060
backoffLimit: 6 # Specifies the number of retries before marking this job failed. Defaults to 6
6161
```

0 commit comments

Comments
 (0)