Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save shark8me/6aedea9e8aaca9deb78eafbe3d2285ff to your computer and use it in GitHub Desktop.
Create a k8s job
;;set the REST endpoint for K8S
(core/set-api-context {:base-url "http://localhost:8080"})
;;create a job with the given spec.
;;we'll use the default K8s namespace.
(create-namespaced-job "default" pi-job-spec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment