Skip to content

Commit

Permalink
Add documentation regarding changing labels
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lender <[email protected]>
  • Loading branch information
b1-lender committed Aug 30, 2024
1 parent 57834e0 commit 7489f6c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docs/guides/configuration-guide/rook.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,7 @@ nodeAffinity:
- "true"
```

TODO: Implement a way to cleanly relabel nodes.
TODO: Implement reschedule after changing labels
If you decide after the initial deployment to move Ceph components to different nodes you can do so modifying `inventory/20-roles` and run `osism apply rook-change-labels` afterwards.

## Crash Collector

Expand Down
29 changes: 29 additions & 0 deletions docs/guides/deploy-guide/services/rook.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,35 @@ OpenStack integration between Keystone/Swift and Rook is currently missing upstr

:::

## Change node labels

In case you decided to move workloads to different nodes and changed the inventory groups e.g. like this:

```ini title="inventory/20-roles"
[rook-mds:children]
ceph-control

[rook-mgr:children]
ceph-control

[rook-mon:children]
ceph-control

[rook-osd:children]
ceph-resource

[rook-rgw:children]
ceph-control
```

You can apply the changes running:

```bash
osism apply rook-change-labels
```

This will remove all labels and apply the changed inventory groups as labels. After those steps are done it will trigger the rescheduling of the components so they get deployed on the adjusted nodes.

## Cleanup

:::warning
Expand Down

0 comments on commit 7489f6c

Please sign in to comment.