make formatting uniform, add imagePullPolicy:always to deluge, add end message to experiment runner script

This commit is contained in:
gmega 2024-12-09 16:30:21 -03:00
parent 3d202d281e
commit 8d24855806
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18
5 changed files with 11 additions and 3 deletions

View File

@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
name: deluge-pvc
namespace: codex-benchmarks
spec:
accessModes:
- ReadWriteMany

View File

@ -5,7 +5,7 @@ metadata:
namespace: codex-benchmarks
spec:
replicas: 100
replicas: 10
serviceName: deluge-service
podManagementPolicy: Parallel
selector:
@ -21,6 +21,7 @@ spec:
containers:
- name: deluge
image: codexstorage/deluge
imagePullPolicy: Always
ports:
- containerPort: 6890
env:
@ -34,7 +35,6 @@ spec:
value: "6891,6892"
- name: DELUGE_LOG_LEVEL
value: "info"
command: [ "/bin/bash", "--login", "-c" ]
args:
- |
@ -50,7 +50,6 @@ spec:
mkdir -p ${DELUGE_CONFIG_DIR}
${DELUGE_APP}/docker/bin/start.sh
volumeMounts:
- name: deluge-volume
mountPath: /var/lib/deluge

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash
#
# Simple script for running benchmark experiments on a Kubernetes cluster.
set -e
function on_interrupt () {
@ -31,3 +33,5 @@ if [ -z "${TESTRUNNER_POD}" ]; then
fi
kubectl logs -f "${TESTRUNNER_POD}" -n codex-benchmarks
echo " * Test runner has finished."

View File

@ -5,15 +5,18 @@ metadata:
namespace: codex-benchmarks
labels:
app: bittorrent-tracker
spec:
replicas: 1
selector:
matchLabels:
app: bittorrent-tracker
template:
metadata:
labels:
app: bittorrent-tracker
spec:
containers:
- name: tracker

View File

@ -5,6 +5,7 @@ metadata:
namespace: codex-benchmarks
labels:
app: tracker
spec:
type: ClusterIP # Change to NodePort or LoadBalancer if needed
ports: