firecracker-microvm / firecracker-containerd

firecracker-containerd enables containerd to manage containers as Firecracker microVMs
Apache License 2.0
2.18k stars 182 forks source link

Running kubelet with firecracker-container failed #543

Open swartz-k opened 2 years ago

swartz-k commented 2 years ago

I have install firecracker-containerd in my machine and can run container use the flow command

firecracker-ctr --address /run/firecracker-containerd/containerd.sock run  --rm --tty --net-host docker.io/library/debian:latest test

I want use it with kubelet. Is it right? I change kubelet config as below.

# /var/lib/kubelet/kubeadm-flags.env
KUBELET_EXTRA_ARGS="--container-runtime=remote --container-runtime-endpoint=unix:///run/firecracker-containerd/containerd.sock"

But, kubelet failed as follow errors.

failed to create kubelet: get remote runtime typed version failed: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService
swartz-k commented 2 years ago

I properly misunderstand. The right way may be kubelet - containerd - firecracker-containerd. Trying on this.

Kern-- commented 2 years ago

firecracker-containerd is not CRI conformant and therefore will not work with kubernetes. https://github.com/firecracker-microvm/firecracker-containerd/issues/88 tracks conformance, but we're not there yet.