Last active
September 26, 2019 16:09
-
-
Save edwardmlyte/9a05792f291f3e3319a01d686f68cbe5 to your computer and use it in GitHub Desktop.
Alpine Kubernetes job to curl an endpoint
This file contains 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
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: curl | |
spec: | |
template: | |
spec: | |
containers: | |
- name: alpine | |
image: alpine:3 | |
command: ["/bin/ash"] | |
args: ["-c", "apk update && apk add --no-cache curl && curl https://icanhazdadjoke.com/"] | |
restartPolicy: Never | |
backoffLimit: 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment