From 8a56ad8a449cd53016823075b2e6746cce8f7565 Mon Sep 17 00:00:00 2001 From: Marco van Zijl Date: Sat, 3 May 2025 22:30:25 +0200 Subject: [PATCH] Add instructions for wiping disks for Ceph in README --- readme.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/readme.md b/readme.md index 04a5107..ecfaf41 100644 --- a/readme.md +++ b/readme.md @@ -177,6 +177,25 @@ User: admin on [http://ceph.noxxos.nl](http://ceph.noxxos.nl) kubectl -n ceph get secret rook-ceph-dashboard-password -o jsonpath="{['data']['password']}" | base64 --decode && echo ``` +### Wiping disks for Ceph + +Start a temporary pod on each node where the disks are: + +```bash +kubectl run -it --rm \ + -n ceph \ + --image quay.io/ceph/ceph:v19.2.2 \ + --privileged \ + --overrides='{"spec": { "nodeSelector": {"kubernetes.io/hostname": "master3"}}}' fix +``` + +Then run the following commands: + +```bash +ceph-volume lvm zap /dev/sdX --destroy +wipefs -a /dev/sdX +``` + ### Certificate lifetimes Talos Linux automatically manages and rotates all server side certificates for etcd, Kubernetes, and the Talos API. Note however that the kubelet needs to be restarted at least once a year in order for the certificates to be rotated. Any upgrade/reboot of the node will suffice for this effect.