couchbase-kubernetes
couchbase-kubernetes copied to clipboard
When will k8s detach ebs?
Follow this pv tutorial
When I deleted a pod in rc, chances are will k8s start a new pod on another node. Meanwhile, the ebs volume is still attached to the old node. And there'll be events like 'Failed to mount, ..., VolumeInUse'. But sometimes k8s just start a new pod on the same node, so a little hard to repeat.
Could you please help me with my questions:
- Is it an expected behavior that k8s'll auto detach ebs volume when recover a pod on another node?
- If not, I should use petset?