Skip to content

Instantly share code, notes, and snippets.

@cheethoe
cheethoe / ceph-exporter-pod.yaml
Created August 17, 2018 21:58
Ceph exporter pod for use with rook-ceph cluster
apiVersion: v1
kind: Pod
metadata:
name: ceph-exporter
namespace: rook-ceph
labels:
app: ceph-exporter
spec:
dnsPolicy: ClusterFirstWithHostNet
containers:
@cheethoe
cheethoe / gist:49d9c1d0003e44423e54a060e0b3fbf1
Last active April 14, 2022 21:01
Rook v0.8.0 device/osd removal
# This will use osd.5 as an example
# ceph commands are expected to be run in the rook-toolbox
1) disk fails
2) remove disk from node
3) mark out osd. `ceph osd out osd.5`
4) remove from crush map. `ceph osd crush remove osd.5`
5) delete caps. `ceph auth del osd.5`
6) remove osd. `ceph osd rm osd.5`
7) delete the deployment `kubectl delete deployment -n rook-ceph rook-ceph-osd-id-5`
8) delete osd data dir on node `rm -rf /var/lib/rook/osd5`