volcano icon indicating copy to clipboard operation
volcano copied to clipboard

Switch hostPath to emptyDir

Open strangiato opened this issue 1 year ago • 9 comments

Resolves #3298

hostPath should be avoided unless absolutely necessary as per the upstream k8s docs:

https://kubernetes.io/docs/concepts/storage/volumes/#hostpath

This change swaps the hostPath for an emptyDir allowing the tmp logs to be written to an ephemeral location.

emptyDir is preferable to not using a volume at all in case a users environment enforces Read Only Root Filesystems.

Since this log is already being written to /tmp it doesn't seem like there is a requirement to persist these logs using a PVC.

strangiato avatar Jan 17 '24 21:01 strangiato

Welcome @strangiato!

It looks like this is your first PR to volcano-sh/volcano 馃帀.

Thank you, and welcome to Volcano. :smiley:

volcano-sh-bot avatar Jan 17 '24 21:01 volcano-sh-bot

/assign @kevin-wangzefeng

strangiato avatar Jan 17 '24 21:01 strangiato

Hi, please also execute make update-development-yaml to make install/volcano-development.yaml upated too. And use git commit -s to submit your pr.

Monokaix avatar Jan 18 '24 01:01 Monokaix

Signed the commit.

I also went ahead and ran make update-development-yaml. It did not generate any changes since I manually updated the volcano-development.yaml file.

strangiato avatar Jan 18 '24 17:01 strangiato

Signed the commit.

I also went ahead and ran make update-development-yaml. It did not generate any changes since I manually updated the volcano-development.yaml file.

Understood: )

Monokaix avatar Jan 19 '24 01:01 Monokaix

Hi, seems DCO verification still not passed, pleae have a look.

Monokaix avatar Jan 23 '24 01:01 Monokaix

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kumarankit999 To complete the pull request process, please assign kevin-wangzefeng You can assign the PR to them by writing /assign @kevin-wangzefeng in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

volcano-sh-bot avatar Feb 06 '24 09:02 volcano-sh-bot

@kumarankit999: changing LGTM is restricted to collaborators

In response to this:

Now emptyDir has been on the place of hostPath

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

volcano-sh-bot avatar Feb 06 '24 09:02 volcano-sh-bot

Hi, are you still working on this?

Monokaix avatar May 14 '24 06:05 Monokaix