Skip to content

Commit

Permalink
Adjust Rook specs for new version/features
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Wolf <[email protected]>
  • Loading branch information
NotTheEvilOne committed Dec 11, 2024
1 parent cd853f3 commit 205db7d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/rookify/modules/migrate_mds_pools/templates/filesystem.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ spec:
# for more info: https://docs.ceph.com/docs/master/rados/operations/placement-groups/#specifying-expected-pool-size
#target_size_ratio: ".5"
{% endfor %}
{% if mds_name %}
# Preserve pool names as specified
preservePoolNames: true
{% endif %}
# Whether to preserve filesystem after CephFilesystem CRD deletion
preserveFilesystemOnDelete: true
# The metadata service (mds) configuration
Expand Down Expand Up @@ -81,6 +85,15 @@ spec:
operator: In
values:
- "true"
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: {{ mds_placement_label }}
operator: In
values:
- "true"
topologyKey: "kubernetes.io/hostname"
# A key/value list of annotations
# annotations:
# key: value
Expand Down
9 changes: 9 additions & 0 deletions src/rookify/modules/migrate_rgw_pools/templates/pool.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ spec:
operator: In
values:
- "true"
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: {{ rgw_placement_label }}
operator: In
values:
- "true"
topologyKey: "kubernetes.io/hostname"
# A key/value list of annotations
annotations:
# key: value
Expand Down

0 comments on commit 205db7d

Please sign in to comment.