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 ephemeral volumes  #61

@harche

Description

@harche

Hi,

As of now all volumes are created on the host and passed to VM via 9pfs. But k8s allows you to create ephemeral volumes Also, these volumes can be backed by a ramdisk. Ephemeral volumes, as the name indicates, live and die with the pod. There is no reason to use 9pfs for this type of volume.

Kata needs to support these volumes by creating tempfs based volume inside of the VM.

The possible approach that I can think of,

  1. Detect if the volume getting attached is backed by a ramdisk (temfs)
  2. When VM boots, instruct init to create tempfs inside of VM
  3. Use the ramdisk created inside VM in step 2 with the containers of the pod.

Any thoughts?

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