-
Notifications
You must be signed in to change notification settings - Fork 374
Firecracker Limitation: volume support #1071
Comments
For example the service account token shows up inside the pod as below config.json snippet
Within the POD it is typically visible as
And the pod spec is
The host side directory corresponding to this is
|
We will not be able to support termination pod binding. An example from a container config.json
|
Another point of concern I believe, is how to handle secrets/certs securely. host -> VM |
/cc @nmeyerhans |
Have you considered NFS for host to guest file sharing? It's possible to create a host-guest network with virtio-net, or use vsock. Firecracker supports vsock and work has been done on nfs-vsock by @stefanha. |
NFS over AF_VSOCK is currently not actively developed because I'm focussing on virtio-fs (https://virtio-fs.gitlab.io/) instead. If the main requirement for host<->guest file sharing is for small files dynamically generated by the host, then it might be easiest to use kata-agent to send them into the sandbox VM. Perhaps kata-runtime would use inotify on the host to monitor changes (e.g. /etc/hosts). |
Is there an update on this ticket, or can it be re-prioritized? Since the majority of potential container-based workloads require dynamic configuration, secrets, and/or serviceaccount tokens, I believe this limitation is a rather large blocker for anyone to use kata+firecracker outside of sandbox environments. Am I off on this? |
@jcrowthe - I don't believe you are off on your assessment, but, I also believe this is generically a firecracker 'issue', not a Kata issue. It is a feature that is not provided by firecracker, with no easy workaround for Kata to use in its place. Something to also note/discuss to the firecracker folks then I guess? |
It looks like support for something along these lines is on the firecracker roadmap at least firecracker-microvm/firecracker#1180 |
@jodh-intel Did kata with firecracker get volume support that I missed? |
@StevenACoffman, please, see http://lists.katacontainers.io/pipermail/kata-dev/2021-April/001819.html, there you'll find the explanation why the issue was closed. |
|
Description of problem
Firecracker today does not have support for host to guest file sharing. Kata achieves minimal file sharing by copying files from host to guest.
Critical kubernetes features like tokens, secrets, configmaps are typically volumes mapping to host side directories with files (and symlinks).
We need to find a method to handle common kubernetes volumes mounts using copy.
This may help us handle short lived PODs that may not need to handle updates (like FaaS usages).
The text was updated successfully, but these errors were encountered: