Skip to content

Instantly share code, notes, and snippets.

@schmichael
Created January 18, 2022 20:58
Show Gist options
  • Save schmichael/6fe4f146bf7a4465b736f12c07ff9d34 to your computer and use it in GitHub Desktop.
Save schmichael/6fe4f146bf7a4465b736f12c07ff9d34 to your computer and use it in GitHub Desktop.
job "hello" {
datacenters = ["dc1"]
type = "batch"
periodic {
cron = "* * * * * *"
}
task "hello" {
driver = "docker"
config {
image = "busybox"
command = "/bin/bash"
args = ["-c", "date; echo Hello from the Kubernetes cluster"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment