Skip to content

Instantly share code, notes, and snippets.

@edevil
Forked from sercand/stress.yaml
Created July 1, 2016 08:17
Show Gist options
  • Save edevil/8e98fda52dd42ff07e602f34ccaa7f39 to your computer and use it in GitHub Desktop.
Save edevil/8e98fda52dd42ff07e602f34ccaa7f39 to your computer and use it in GitHub Desktop.
Kubernetes Stress Job
apiVersion: batch/v1
kind: Job
metadata:
name: pi-with-timeout
spec:
parallelism: 20
completions: 100
template:
metadata:
name: pi
spec:
containers:
- name: pi
image: perl
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(10)"]
restartPolicy: Never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment