Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ephemeral PVC for JENKINS_HOME #769

Closed
tomvopat opened this issue Sep 23, 2022 · 7 comments
Closed

Use ephemeral PVC for JENKINS_HOME #769

tomvopat opened this issue Sep 23, 2022 · 7 comments
Assignees
Labels
enhancement New feature or request not-stale
Milestone

Comments

@tomvopat
Copy link

Describe the solution you'd like
For big projects with many jobs and many archived logs, it can happen that JENKINKS_HOME directory takes all the node's disk capacity as it is of type emptyDir. Using an ephemeral PVC for JENKINS_HOME would solve this issue.

@tomvopat tomvopat added the enhancement New feature or request label Sep 23, 2022
@brokenpip3 brokenpip3 self-assigned this Feb 28, 2023
@brokenpip3
Copy link
Collaborator

Yep agree this is something we should implement to avoid evicted pods and not ready nodes due to disk pressure.

@brokenpip3 brokenpip3 added this to the 0.9 milestone Feb 28, 2023
@sonali-rajput
Copy link

Do I need to make the changes in the default configuration or make a new one separately?

@tomvopat
Copy link
Author

tomvopat commented Mar 7, 2023

Can you elaborate a bit? I'm not sure what you mean...

@dashashutosh24
Copy link

@brokenpip3 Is this being worked on? Having a PVC for jenkins home directory would really be useful.

@brokenpip3
Copy link
Collaborator

brokenpip3 commented May 3, 2023

Hi @dashashutosh24 this is not a pvc for the home directory, it's just using ephemeral pvc instead of emptydir as home directory (#779 (comment)).
If you want to have a persistent volume for the whole home directory you can use the official jenkins helm chart :)
Maybe in the future we may add a small portion of the home directory like secrets but it's not planned yet.
Coming back to the issue original request: I want to work on this soon :)

@dashashutosh24
Copy link

@brokenpip3 Thanks for the response. Just a quick question, I tried mounting a PV at /var/lib/jenkins/secrets to preserve the secrets to allow agent reconnection after master comes back up once its down. But still the agent wasn't able to connect to the master. This is in relation to #691 . Any idea how to tackle this?

@brokenpip3
Copy link
Collaborator

brokenpip3 commented May 3, 2023

Let's move the conversation in that issue, I replied to you there

@github-actions github-actions bot added the stale label Jul 2, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request not-stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants