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

media: Do not attach volume when disabled #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

christf
Copy link

@christf christf commented Sep 1, 2022

When the volume is attached as emptyDir, it will be a local volume
resulting in inability to drain a node because of existing local volumes
in the pod. This changes the semantics such that /media is never mounted
as a volume if it is not specifically enabled, allowing jellyfin to be
re-located to other nodes in the cluster

When the volume is attached as emptyDir, it will be a local volume
resulting in inability to drain a node because of existing local volumes
in the pod. This changes the semantics such that /media is never mounted
as a volume if it is not specifically enabled, allowing jellyfin to be
re-located to other nodes in the cluster
@brianmcarey brianmcarey self-requested a review September 2, 2022 07:28
Copy link
Owner

@brianmcarey brianmcarey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @christf - thanks for the PR. It looks good.

As far as I can remember - the reason I went with the emptyDirwas so that users could easily test out their media by simply dropping it into the local volume. That will be difficult to do without it.
I am pretty sure you can still drain the node with something like:
kubectl drain <node> --delete-emptydir-data=true

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants