Skip to content

Commit

Permalink
Merge pull request #64 from kusumachalasani/sysbench
Browse files Browse the repository at this point in the history
Add sysbench manifests
  • Loading branch information
dinogun authored Nov 15, 2024
2 parents c6f6d2d + 4028d5b commit 469959c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sysbench/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y sysbench && \
rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["sysbench"]

CMD ["cpu", "--threads=1", "--time=100000", "run"]
4 changes: 4 additions & 0 deletions sysbench/ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sysbench

## Run the benchmark in kubernetes as
kubectl apply -f manifests/
30 changes: 30 additions & 0 deletions sysbench/manifests/sysbench.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: sysbench
spec:
selector:
matchLabels:
app: sysbench
replicas: 2
template:
metadata:
labels:
app: sysbench
spec:
containers:
- name: sysbench
image: quay.io/kruizehub/sysbench:latest
resources:
requests:
cpu: 250m
memory: 500Mi
limits:
cpu: 250m
memory: 500Mi
command:
- sysbench
- cpu
- --threads=1
- --time=100000
- run

0 comments on commit 469959c

Please sign in to comment.