Skip to content

Instantly share code, notes, and snippets.

@ryancox
Last active March 1, 2016 04:23
Show Gist options
  • Save ryancox/3fc1cf7e608eea95e9af to your computer and use it in GitHub Desktop.
Save ryancox/3fc1cf7e608eea95e9af to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Job
metadata:
name: clientload
spec:
parallelism: 6
completions: 6
template:
metadata:
labels:
name: clientload
spec:
nodeSelector:
segment: client
containers:
- name: clientload
image: docker.io/ryancox/gatling-k8s-client:1.0.3
env:
- name: ITERATIONS
value: "50"
- name: CONCURRENT_USERS
value: "25"
- name: SERVICE_NAME
value: gatlingcomputerdatabase
- name: SIMULATION
value: computerdatabase.ParameterizedSimulation
- name: BUCKET_RAWLOGS
value: rc-rawlogs
- name: BUCKET_REPORT
value: rc-report
volumeMounts:
- mountPath: /simulations
name: git-volume
command: ["./runclient"]
restartPolicy: Never
volumes:
- name: git-volume
gitRepo:
repository: "https://gist.github.com/ryancox/5039c2d49caecac2e104"
revision: "1f7efe340010a1bd39efcb2a50676563232e3032"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment