解决方法:
在delete pod之前,执行“delete deployment”
#执行这个命令之后,osd回不断地换ID重启
kubectl delete pod rook-ceph-osd-0-5b46b67549-87h6v --force --grace-period=0 -n rook-ceph
这时就需要先deployment才行。
[root@kub1 ceph]# kubectl get deployment -n rook-ceph
NAME READY UP-TO-DATE AVAILABLE AGE
csi-cephfsplugin-provisioner 2/2 2 2 2d6h
csi-rbdplugin-provisioner 2/2 2 2 2d6h
rook-ceph-mgr-a 1/1 1 1 2d
rook-ceph-operator 1/1 1 1 2d18h
rook-ceph-osd-0 0/1 1 0 2d
[root@kub1 ceph]# kubectl delete deployment rook-ceph-osd-0 -n rook-ceph
deployment.extensions "rook-ceph-osd-0" deleted