Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 205db7d

Browse files
committed
Adjust Rook specs for new version/features
Signed-off-by: Tobias Wolf <[email protected]>
1 parent cd853f3 commit 205db7d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/rookify/modules/migrate_mds_pools/templates/filesystem.yaml.j2

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ spec:
5353
# for more info: https://docs.ceph.com/docs/master/rados/operations/placement-groups/#specifying-expected-pool-size
5454
#target_size_ratio: ".5"
5555
{% endfor %}
56+
{% if mds_name %}
57+
# Preserve pool names as specified
58+
preservePoolNames: true
59+
{% endif %}
5660
# Whether to preserve filesystem after CephFilesystem CRD deletion
5761
preserveFilesystemOnDelete: true
5862
# The metadata service (mds) configuration
@@ -81,6 +85,15 @@ spec:
8185
operator: In
8286
values:
8387
- "true"
88+
podAntiAffinity:
89+
requiredDuringSchedulingIgnoredDuringExecution:
90+
- labelSelector:
91+
matchExpressions:
92+
- key: {{ mds_placement_label }}
93+
operator: In
94+
values:
95+
- "true"
96+
topologyKey: "kubernetes.io/hostname"
8497
# A key/value list of annotations
8598
# annotations:
8699
# key: value

src/rookify/modules/migrate_rgw_pools/templates/pool.yaml.j2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ spec:
8080
operator: In
8181
values:
8282
- "true"
83+
podAntiAffinity:
84+
requiredDuringSchedulingIgnoredDuringExecution:
85+
- labelSelector:
86+
matchExpressions:
87+
- key: {{ rgw_placement_label }}
88+
operator: In
89+
values:
90+
- "true"
91+
topologyKey: "kubernetes.io/hostname"
8392
# A key/value list of annotations
8493
annotations:
8594
# key: value

0 commit comments

Comments
 (0)