Skip to content

Make it possible to cleanup the workdir on workers startup for deployments #373

@david-baylibre

Description

@david-baylibre

Is your feature request related to a problem? Please describe.

Hi,
The variable worker.cleanUpWorkDirOnStart makes it possible to cleanup the workdir on workers startup but it's been implemented for statefulset only. Is there any good reason it's not implemented in deployments?

Nodes disk space keeps growing up because of unreleased disk space after a worker crashes, gets restarted or even upgraded.
Some may have good reasons for not using statefulsets: local high performance disks required, workers and nodes autoscaling, etc...

Describe the solution you'd like

I wish the cleanup initContainer was implemented in the worker deployment just like it is for statefulsets

I'd be happy to submit a patch

Describe alternatives you've considered

None that I can think of

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions