I've started to use cert-exporter and faced a problem:
when I delete a pod, that use ceph rbd, that rbd is not unmapped/unmount automatically from k8s node and the pod cannot be scheduled on another node.
Kubelet logs:
After some research I found the root of this issue (thanks to this guy - https://cloud.tencent.com/developer/article/1469532). This is a cert-exporter pod running on the same k8s node.
cert-exporter pod mounts /var/lib/kubelet and pods, that use ceph rbd, mounts over it to /var/lib/kubelet/plugins/kubernetes.io/rbd/mounts/blablabla
Hi there.
I've started to use cert-exporter and faced a problem: when I delete a pod, that use ceph rbd, that rbd is not unmapped/unmount automatically from k8s node and the pod cannot be scheduled on another node. Kubelet logs:
After some research I found the root of this issue (thanks to this guy - https://cloud.tencent.com/developer/article/1469532). This is a cert-exporter pod running on the same k8s node. cert-exporter pod mounts
/var/lib/kubelet
and pods, that use ceph rbd, mounts over it to/var/lib/kubelet/plugins/kubernetes.io/rbd/mounts/blablabla
Related issue https://github.com/kubernetes/kubernetes/issues/54214. Related PR in prometheus-node-exporter https://github.com/helm/charts/pull/11194/files
The solution is to add an option to configure mountPropagation in daemonsets like that: