Created
September 15, 2020 11:24
-
-
Save shark8me/6aedea9e8aaca9deb78eafbe3d2285ff to your computer and use it in GitHub Desktop.
Create a k8s job
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;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