apiVersion: batch/v1
kind: Job
metadata:
  name: megaboom
spec:
  activeDeadlineSeconds: 300 # 5 minutes
  parallelism: 100
  template:
    metadata:
      name: megaboom
    spec:
      containers:
        - name: megaboom
          image: quay.io/arschles/boom:0.1.0
          imagePullPolicy: IfNotPresent
          # 10,000 requests * 100 pods (listed as parallelism above) = 1,000,000 total requests
          # 100 concurrent requests * 100 pods (listed as parallelism above) = 10,000 max requests concurrently in flight
          command: ["boom", "-n", "10000", "-c", "100", "http://kubehttpbin.org/get"]
      restartPolicy: Never
