Skip to content

Commit

Permalink
Merge pull request rook#8199 from travisn/topology-spread-osd-prepare
Browse files Browse the repository at this point in the history
ceph: Update cluster-on-pvc example for proper OSD scheduling
  • Loading branch information
travisn authored Jun 25, 2021
2 parents 507f913 + 9f66150 commit 06a889f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cluster/examples/kubernetes/ceph/cluster-on-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ spec:
topologyKey: kubernetes.io/hostname
topologySpreadConstraints:
- maxSkew: 1
# IMPORTANT: If you don't have zone labels, change this to another key such as kubernetes.io/hostname
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchExpressions:
- key: app
Expand Down

0 comments on commit 06a889f

Please sign in to comment.