This commit is contained in:
Tomer Zait
2024-01-16 23:44:49 +02:00
parent 770da91eec
commit cd6a318896
11 changed files with 255 additions and 30 deletions
+14
View File
@@ -0,0 +1,14 @@
version: '3'
services:
challenge:
image: busybox:stable-glibc
labels:
kompose.cronjob.schedule: "* * * * *"
kompose.cronjob.concurrency_policy: "Forbid"
kompose.cronjob.backoff_limit: "0"
command:
- "bash"
- "-c"
- "echo hello from cron"
restart: "no"
+27
View File
@@ -0,0 +1,27 @@
---
apiVersion: batch/v1
kind: CronJob
metadata:
labels:
io.kompose.service: challenge
name: challenge
spec:
concurrencyPolicy: Forbid
jobTemplate:
spec:
backoffLimit: 0
template:
metadata:
labels:
io.kompose.network/cronjob-default: "true"
io.kompose.service: challenge
spec:
containers:
- args:
- bash
- -c
- echo hello from cron
image: busybox:stable-glibc
name: challenge
restartPolicy: Never
schedule: '* * * * *'
+27
View File
@@ -0,0 +1,27 @@
---
apiVersion: batch/v1
kind: CronJob
metadata:
labels:
io.kompose.service: challenge
name: challenge
spec:
concurrencyPolicy: Forbid
jobTemplate:
spec:
backoffLimit: 0
template:
metadata:
labels:
io.kompose.network/cronjob-default: "true"
io.kompose.service: challenge
spec:
containers:
- args:
- bash
- -c
- echo hello from cron
image: busybox:stable-glibc
name: challenge
restartPolicy: Never
schedule: '* * * * *'