Skip to content

Remove PVCs when removing StatefulSets nodes #1288

Description

@sebgl

When we scale down or remove a StatefulSet, we don't remove associated PVCs of nodes that have been removed.
The StatefulSet controller itself does not remove PVCs either.

This can lead to confusing scenarios:

  • scale down a cluster, then scale it up 3 months later: it will reuse 3-months old volumes
  • remove a cluster, create it again with the same name: it will reuse the old cluster data

I think we should remove PVCs (I don't see why not), but not necessarily remove the associated PVs: leave that up to the storageClass reclaim policy.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions