mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-17 22:34:25 +01:00
- Ensure that our documented crictl pod config file contents have uid and namespace fields for compatibility with crictl 1.24+ Fixes: #4513 Signed-off-by: stevenhorsman <steven@uk.ibm.com>
1.5 KiB
1.5 KiB
Kata Containers with virtio-fs-nydus
Introduction
Refer to kata-nydus-design for introduction and nydus has supported Kata Containers with hypervisor QEMU and CLH currently.
How to
You can use Kata Containers with nydus as follows,
-
Use
nyduslatest branch; -
Deploy
nydusenvironment asNydusSetup for Containerd Environment; -
Start
nydus-snapshotterwithenable_nydus_overlayfsenabled; -
Use kata-containers
latestbranch to compile and buildkata-containers.img; -
Update
configuration-qemu.tomlorconfiguration-clh.tomlto include:
shared_fs = "virtio-fs-nydus"
virtio_fs_daemon = "<nydusd binary path>"
virtio_fs_extra_args = []
- run
crictl run -r kata nydus-container.yaml nydus-sandbox.yaml;
The nydus-sandbox.yaml looks like below:
metadata:
attempt: 1
name: nydus-sandbox
uid: nydus-uid
namespace: default
log_directory: /tmp
linux:
security_context:
namespace_options:
network: 2
annotations:
"io.containerd.osfeature": "nydus.remoteimage.v1"
The nydus-container.yaml looks like below:
metadata:
name: nydus-container
image:
image: localhost:5000/ubuntu-nydus:latest
command:
- /bin/sleep
args:
- 600
log_path: container.1.log