Skip to content

Instantly share code, notes, and snippets.

@edwardmlyte
Last active September 26, 2019 16:09
Show Gist options
  • Save edwardmlyte/9a05792f291f3e3319a01d686f68cbe5 to your computer and use it in GitHub Desktop.
Save edwardmlyte/9a05792f291f3e3319a01d686f68cbe5 to your computer and use it in GitHub Desktop.
Alpine Kubernetes job to curl an endpoint
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