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 Mix Workload for RDR #84

Merged
merged 1 commit into from
Aug 6, 2024
Merged
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
53 changes: 53 additions & 0 deletions rdr/busybox/mix-workload/deployment/busybox-deploy-1-cephfs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
appname: busybox_app_mix
workloadpattern: simple_io
name: busybox-mix-cephfs-1
spec:
selector:
matchLabels:
workload: busybox_app_mix
strategy:
type: Recreate
template:
metadata:
labels:
workload: busybox_app_mix
spec:
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
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/rdr-ocs-workload
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: mypvc
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: busybox-pvc-mix-cephfs-1
readOnly: false
53 changes: 53 additions & 0 deletions rdr/busybox/mix-workload/deployment/busybox-deploy-1-rbd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
appname: busybox_app_mix
workloadpattern: simple_io
name: busybox-mix-rbd-1
spec:
selector:
matchLabels:
workload: busybox_app_mix
strategy:
type: Recreate
template:
metadata:
labels:
workload: busybox_app_mix
spec:
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
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/rdr-ocs-workload
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: mypvc
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: busybox-pvc-mix-rbd-1
readOnly: false
53 changes: 53 additions & 0 deletions rdr/busybox/mix-workload/deployment/busybox-deploy-2-cephfs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
appname: busybox_app_mix
workloadpattern: simple_io
name: busybox-mix-cephfs-2
spec:
selector:
matchLabels:
workload: busybox_app_mix
strategy:
type: Recreate
template:
metadata:
labels:
workload: busybox_app_mix
spec:
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
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: mypvc
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: busybox-pvc-mix-cephfs-2
readOnly: false
53 changes: 53 additions & 0 deletions rdr/busybox/mix-workload/deployment/busybox-deploy-2-rbd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
appname: busybox_app_mix
workloadpattern: simple_io
name: busybox-mix-rbd-2
spec:
selector:
matchLabels:
workload: busybox_app_mix
strategy:
type: Recreate
template:
metadata:
labels:
workload: busybox_app_mix
spec:
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
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: mypvc
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: busybox-pvc-mix-rbd-2
readOnly: false
53 changes: 53 additions & 0 deletions rdr/busybox/mix-workload/deployment/busybox-deploy-3-cephfs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
appname: busybox_app_mix
workloadpattern: simple_io
name: busybox-mix-cephfs-3
spec:
selector:
matchLabels:
workload: busybox_app_mix
strategy:
type: Recreate
template:
metadata:
labels:
workload: busybox_app_mix
spec:
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
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: mypvc
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: busybox-pvc-mix-cephfs-3
readOnly: false
53 changes: 53 additions & 0 deletions rdr/busybox/mix-workload/deployment/busybox-deploy-3-rbd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
appname: busybox_app_mix
workloadpattern: simple_io
name: busybox-mix-rbd-3
spec:
selector:
matchLabels:
workload: busybox_app_mix
strategy:
type: Recreate
template:
metadata:
labels:
workload: busybox_app_mix
spec:
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
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: mypvc
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: busybox-pvc-mix-rbd-3
readOnly: false
13 changes: 13 additions & 0 deletions rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app_mix
name: busybox-pvc-mix-cephfs-1
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 94Gi
storageClassName: ocs-storagecluster-cephfs
13 changes: 13 additions & 0 deletions rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app_mix
name: busybox-pvc-mix-cephfs-2
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 44Gi
storageClassName: ocs-storagecluster-cephfs
13 changes: 13 additions & 0 deletions rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app_mix
name: busybox-pvc-mix-cephfs-3
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 76Gi
storageClassName: ocs-storagecluster-cephfs
13 changes: 13 additions & 0 deletions rdr/busybox/mix-workload/deployment/busybox-pvc-rbd-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app_mix
name: busybox-pvc-mix-rbd-1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 94Gi
storageClassName: ocs-storagecluster-ceph-rbd
13 changes: 13 additions & 0 deletions rdr/busybox/mix-workload/deployment/busybox-pvc-rbd-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app_mix
name: busybox-pvc-mix-rbd-2
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 44Gi
storageClassName: ocs-storagecluster-ceph-rbd
Loading
Loading