diff --git a/rdr/busybox/mix-workload/deployment/busybox-deploy-1-cephfs.yaml b/rdr/busybox/mix-workload/deployment/busybox-deploy-1-cephfs.yaml new file mode 100644 index 00000000..f1131d1a --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-deploy-1-cephfs.yaml @@ -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 diff --git a/rdr/busybox/mix-workload/deployment/busybox-deploy-1-rbd.yaml b/rdr/busybox/mix-workload/deployment/busybox-deploy-1-rbd.yaml new file mode 100644 index 00000000..dc4b9f88 --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-deploy-1-rbd.yaml @@ -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 diff --git a/rdr/busybox/mix-workload/deployment/busybox-deploy-2-cephfs.yaml b/rdr/busybox/mix-workload/deployment/busybox-deploy-2-cephfs.yaml new file mode 100644 index 00000000..3aa8a844 --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-deploy-2-cephfs.yaml @@ -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 diff --git a/rdr/busybox/mix-workload/deployment/busybox-deploy-2-rbd.yaml b/rdr/busybox/mix-workload/deployment/busybox-deploy-2-rbd.yaml new file mode 100644 index 00000000..ed70ec8d --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-deploy-2-rbd.yaml @@ -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 diff --git a/rdr/busybox/mix-workload/deployment/busybox-deploy-3-cephfs.yaml b/rdr/busybox/mix-workload/deployment/busybox-deploy-3-cephfs.yaml new file mode 100644 index 00000000..e15a77c1 --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-deploy-3-cephfs.yaml @@ -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 diff --git a/rdr/busybox/mix-workload/deployment/busybox-deploy-3-rbd.yaml b/rdr/busybox/mix-workload/deployment/busybox-deploy-3-rbd.yaml new file mode 100644 index 00000000..5c13b53f --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-deploy-3-rbd.yaml @@ -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 diff --git a/rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-1.yaml b/rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-1.yaml new file mode 100644 index 00000000..88fd0b19 --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-1.yaml @@ -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 diff --git a/rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-2.yaml b/rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-2.yaml new file mode 100644 index 00000000..31313942 --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-2.yaml @@ -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 diff --git a/rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-3.yaml b/rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-3.yaml new file mode 100644 index 00000000..a2af2238 --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-pvc-cephfs-3.yaml @@ -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 diff --git a/rdr/busybox/mix-workload/deployment/busybox-pvc-rbd-1.yaml b/rdr/busybox/mix-workload/deployment/busybox-pvc-rbd-1.yaml new file mode 100644 index 00000000..cee3249f --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-pvc-rbd-1.yaml @@ -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 diff --git a/rdr/busybox/mix-workload/deployment/busybox-pvc-rbd-2.yaml b/rdr/busybox/mix-workload/deployment/busybox-pvc-rbd-2.yaml new file mode 100644 index 00000000..31737920 --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-pvc-rbd-2.yaml @@ -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 diff --git a/rdr/busybox/mix-workload/deployment/busybox-pvc-rbd-3.yaml b/rdr/busybox/mix-workload/deployment/busybox-pvc-rbd-3.yaml new file mode 100644 index 00000000..287a9142 --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/busybox-pvc-rbd-3.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + labels: + appname: busybox_app_mix + name: busybox-pvc-mix-rbd-3 +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 76Gi + storageClassName: ocs-storagecluster-ceph-rbd diff --git a/rdr/busybox/mix-workload/deployment/kustomization.yaml b/rdr/busybox/mix-workload/deployment/kustomization.yaml new file mode 100644 index 00000000..a9c250ba --- /dev/null +++ b/rdr/busybox/mix-workload/deployment/kustomization.yaml @@ -0,0 +1,15 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- busybox-deploy-1-cephfs.yaml +- busybox-deploy-1-rbd.yaml +- busybox-deploy-2-cephfs.yaml +- busybox-deploy-2-rbd.yaml +- busybox-deploy-3-cephfs.yaml +- busybox-deploy-3-rbd.yaml +- busybox-pvc-cephfs-1.yaml +- busybox-pvc-cephfs-2.yaml +- busybox-pvc-cephfs-3.yaml +- busybox-pvc-rbd-1.yaml +- busybox-pvc-rbd-2.yaml +- busybox-pvc-rbd-3.yaml