Skip to content

Instantly share code, notes, and snippets.

@sercand
Created July 1, 2016 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sercand/64116db1905694290e61dac252d20d73 to your computer and use it in GitHub Desktop.
Save sercand/64116db1905694290e61dac252d20d73 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