Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add statefulset workload for RDR #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: app-statefulset
spec:
selector:
matchLabels:
app: app-statefulset # has to match .spec.template.metadata.labels
replicas: 5
template:
metadata:
labels:
app: app-statefulset # has to match .spec.selector.matchLabels
spec:
terminationGracePeriodSeconds: 10
containers:
- command: ["/bin/sh", "-c"]
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io.sh -O /mnt/test/simple_io.sh;
wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/test/simple_io_integrity_check.sh;
chmod +x /mnt/test/simple_io.sh; chmod +x /mnt/test/simple_io_integrity_check.sh;
/mnt/test/simple_io.sh
image: quay.io/ocsci/busybox:latest
env:
- name: IO_SCRIPT
value: "/mnt/test/simple_io.sh"
- name: DATA_INTEGRITY_SCRIPT
value: "/mnt/test/simple_io_integrity_check.sh"
imagePullPolicy: IfNotPresent
name: busybox
volumeMounts:
- mountPath: /mnt/test
name: app-sfs-pvc
volumeClaimTemplates:
- metadata:
labels:
appname: app_statefulset1
name: app-sfs-pvc
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "ocs-storagecluster-ceph-rbd"
resources:
requests:
storage: 30Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- app-1-statefulset.yaml