Skip to content

Commit

Permalink
Add Labels for CronJob kubernetes#1795
Browse files Browse the repository at this point in the history
  • Loading branch information
realgam3 authored and sosan committed Jan 22, 2024
1 parent a0251e2 commit ff3efbe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/docker-compose-cronjob.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit ff3efbe

Please sign in to comment.