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

Reduce Workload count for Cephfs based workloads #92

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
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-dc-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Deployment
metadata:
labels:
appname: busybox_app1-1
workload_set: set_1
workloadpattern: simple_io
name: busybox-1
spec:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-dc-10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Deployment
metadata:
labels:
appname: busybox_app1-10
workload_set: set_2
workloadpattern: simple_io
name: busybox-10
spec:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-dc-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Deployment
metadata:
labels:
appname: busybox_app1-2
workload_set: set_1
workloadpattern: simple_io
name: busybox-2
spec:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-dc-3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Deployment
metadata:
labels:
appname: busybox_app1-3
workload_set: set_1
workloadpattern: simple_io
name: busybox-3
spec:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-dc-4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Deployment
metadata:
labels:
appname: busybox_app1-4
workload_set: set_1
workloadpattern: simple_io
name: busybox-4
spec:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-dc-5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Deployment
metadata:
labels:
appname: busybox_app1-5
workload_set: set_1
workloadpattern: simple_io
name: busybox-5
spec:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-dc-6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Deployment
metadata:
labels:
appname: busybox_app1-6
workload_set: set_2
workloadpattern: simple_io
name: busybox-6
spec:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-dc-7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Deployment
metadata:
labels:
appname: busybox_app1-7
workload_set: set_2
workloadpattern: simple_io
name: busybox-7
spec:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-dc-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Deployment
metadata:
labels:
appname: busybox_app1-8
workload_set: set_2
workloadpattern: simple_io
name: busybox-8
spec:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-dc-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Deployment
metadata:
labels:
appname: busybox_app1-9
workload_set: set_2
workloadpattern: simple_io
name: busybox-9
spec:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-pvc-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app1
workload_set: set_1
name: busybox-pvc-1
spec:
accessModes:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-pvc-10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app1
workload_set: set_2
name: busybox-pvc-10
spec:
accessModes:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-pvc-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app1
workload_set: set_1
name: busybox-pvc-2
spec:
accessModes:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-pvc-3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app1
workload_set: set_1
name: busybox-pvc-3
spec:
accessModes:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-pvc-4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app1
workload_set: set_1
name: busybox-pvc-4
spec:
accessModes:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-pvc-5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app1
workload_set: set_1
name: busybox-pvc-5
spec:
accessModes:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-pvc-6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app1
workload_set: set_2
name: busybox-pvc-6
spec:
accessModes:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-pvc-7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app1
workload_set: set_2
name: busybox-pvc-7
spec:
accessModes:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-pvc-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app1
workload_set: set_2
name: busybox-pvc-8
spec:
accessModes:
Expand Down
1 change: 1 addition & 0 deletions rdr/busybox/base/busybox-pvc-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
appname: busybox_app1
workload_set: set_2
name: busybox-pvc-9
spec:
accessModes:
Expand Down
21 changes: 20 additions & 1 deletion rdr/busybox/cephfs/workloads/app-busybox-2/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ patches:
- op: replace
path: /metadata/labels/appname
value: busybox_app_2
- op: add
path: /spec/replicas
value: 2
- target:
kind: PersistentVolumeClaim
labelSelector: appname=busybox_app1
Expand All @@ -20,4 +23,20 @@ patches:
value: ocs-storagecluster-cephfs
- op: replace
path: /metadata/labels/appname
value: busybox_app2_cephfs
value: busybox_app2_cephfs
- target:
kind: Deployment
labelSelector: workload_set=set_2
patch: |-
kind: Deployment
metadata:
name: busybox-3
$patch: delete
- target:
kind: PersistentVolumeClaim
labelSelector: workload_set=set_2
patch: |-
kind: PersistentVolumeClaim
metadata:
name: busybox-pvc-6
$patch: delete
Loading