Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

Add support for host-created EmptyDir #2518

@evanfoster

Description

@evanfoster

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

Kubernetes EmptyDirs are sometimes used as a way to share data from the host to a guest. The work done in #1485 drastically improved performance for most use-cases, but broke host->guest sharing of files.

Describe the solution you'd like

A flag in the configuration that disables guest-created EmptyDirs, allowing users to fall back to slower, host-created ones.

Describe alternatives you've considered

Unfortunately, there aren't really any other good solutions to the problem my org is using EmptyDir to solve. There are multi-tenancy issues with host volumes, and our use-case relies on linking container logs on the host to a logging container in a pod.

Additional context

I've already implemented this and my org is running a fork with a disable_guest_empty_dir flag, but I'd like to gauge upstream's interest in this. It's a very small changeset (+42 -11) and would allow folks to use EmptyDir with Kata in this way again.

Before raising this feature request

Have you looked at the limitations document?

Yes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions