Skip to content

kubernetes: add support for persistent volume claim volumes #422

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

Closed
d4l3k opened this issue Mar 15, 2022 · 0 comments
Closed

kubernetes: add support for persistent volume claim volumes #422

d4l3k opened this issue Mar 15, 2022 · 0 comments

Comments

@d4l3k
Copy link
Member

d4l3k commented Mar 15, 2022

Description

Add support for PersistentVolumeClaim mounts to Kubernetes scheduler.

Motivation/Background

#420 adds bindmounts to K8S, we want to add in persistent volume claims for Kubernetes which will let us support most of the other remote mounts.

Detailed Proposal

Add a new mount type to specs:

class MountTypes(Enum):
    PERSISTENT_CLAIM = "persistent-claim"
    BIND = "bind"

class PersistentClaimMount(Mount):
    name: str
    dst_path: str
    read_only: bool = False

class Role:
    ...
    mounts: List[Union[BindMount,PersistentClaimMount]]

Add a new format to parse_mounts:

--mounts bind=persistent-claim,name=foo,dst=/foo[,readonly]

Alternatives

Users can already mount a volume on the host node and then bind mount it into kubernetes pod but this violates some isolation principles and can be an issue from a security perspective. It also is a worse experience for users since the mounts need to be mounted on ALL hosts.

Additional context/links

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 a pull request may close this issue.

1 participant