bittorrent-benchmarks/k8s/testrunner-job.yaml

62 lines
1.6 KiB
YAML
Raw Normal View History

2024-12-06 15:42:56 -03:00
apiVersion: batch/v1
kind: Job
metadata:
name: testrunner
namespace: codex-benchmarks
labels:
app: testrunner
2024-12-09 16:27:14 -03:00
2024-12-06 15:42:56 -03:00
spec:
template:
metadata:
labels:
app: testrunner
2024-12-09 16:27:14 -03:00
2024-12-06 15:42:56 -03:00
spec:
containers:
- name: testrunner
image: codexstorage/bittorrent-benchmarks:latest
imagePullPolicy: Always
args: [ "run", "deluge_experiment" ]
env:
- name: NETWORK_SIZE
2024-12-09 16:27:14 -03:00
value: "10"
2024-12-06 15:42:56 -03:00
- name: SEEDERS
value: "4"
2024-12-06 15:42:56 -03:00
- name: REPETITIONS
value: "10"
2024-12-09 16:27:14 -03:00
- name: SEEDER_SETS
2024-12-11 15:43:52 -03:00
value: "5"
2024-12-06 15:42:56 -03:00
- name: FILE_SIZE
value: "104857600"
2024-12-06 15:42:56 -03:00
- name: TRACKER_ANNOUNCE_URL
value: "http://tracker-service.codex-benchmarks.svc.cluster.local:8000/announce"
- name: SHARED_VOLUME_PATH
value: "/opt/bittorrent-benchmarks/volume"
- name: DELUGE_STATEFULSET
value: "deluge-nodes"
- name: DELUGE_SERVICE
value: "deluge-service"
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: benchmark-volume
mountPath: /opt/bittorrent-benchmarks/volume
resources:
requests:
cpu: "1"
memory: "2Gi"
limits:
cpu: "1"
memory: "2Gi"
2024-12-09 16:27:14 -03:00
2024-12-06 15:42:56 -03:00
volumes:
- name: benchmark-volume
persistentVolumeClaim:
claimName: deluge-pvc
restartPolicy: Never
2024-12-09 16:27:14 -03:00
2024-12-06 15:42:56 -03:00
backoffLimit: 0