mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-21 10:39:26 +08:00
Add support for ScaledJob (#436)
* Added ScaledJob support * Fixed getReplicaCount error * Fixed file length error in fileUtils.test.ts * Adjust scaledJob spec path * Made updateImagesInK8sObj more concise
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledJob
|
||||
metadata:
|
||||
name: test-scaledjob
|
||||
labels:
|
||||
app: test-scaledjob
|
||||
spec:
|
||||
jobTargetRef:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: test-scaledjob
|
||||
spec:
|
||||
containers:
|
||||
- name: processor
|
||||
image: busybox:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ['echo', 'hello world']
|
||||
imagePullSecrets:
|
||||
- name: test-secret
|
||||
restartPolicy: Never
|
||||
triggers:
|
||||
- type: cron
|
||||
metadata:
|
||||
timezone: Etc/UTC
|
||||
start: 0 */5 * * * *
|
||||
end: 1 */5 * * * *
|
||||
Reference in New Issue
Block a user