Skip to content

Instantly share code, notes, and snippets.

@shark8me
Last active September 15, 2020 11:24
Show Gist options
  • Select an option

  • Save shark8me/e38972821acf4f7cc89b5eb818382bf6 to your computer and use it in GitHub Desktop.

Select an option

Save shark8me/e38972821acf4f7cc89b5eb818382bf6 to your computer and use it in GitHub Desktop.
Running a Kubernetes Job from the Clojure Repl
(def pi-job-spec
{:apiVersion "batch/v1"
:kind "Job"
:metadata {:name "pi"}
:spec {:ttlSecondsAfterFinished 200
:template
{:spec
{:containers
[{:name "pi"
:imagePullPolicy "Always"
:image "perl"
:command ["perl" "-Mbignum=bpi"
"-wle" "print bpi(50)"]}]
:restartPolicy "Never"}}}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment