Skip to content

Commit

Permalink
kata-deploy: add qemu-runtime-rs runtimeClass
Browse files Browse the repository at this point in the history
Allow kata-deploy to install and configure the qemu-runtime-rs runtimeClass
which ties to qemu hypervisor implementation in rust for the runtime-rs.

Fixes: kata-containers#9804
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
  • Loading branch information
wainersm committed Jun 11, 2024
1 parent 59ff40f commit 377ccc0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
kind: RuntimeClass
apiVersion: node.k8s.io/v1
metadata:
name: kata-qemu-runtime-rs
handler: kata-qemu-runtime-rs
overhead:
podFixed:
memory: "160Mi"
cpu: "250m"
scheduling:
nodeSelector:
katacontainers.io/kata-runtime: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,19 @@ scheduling:
---
kind: RuntimeClass
apiVersion: node.k8s.io/v1
metadata:
name: kata-qemu-runtime-rs
handler: kata-qemu-runtime-rs
overhead:
podFixed:
memory: "160Mi"
cpu: "250m"
scheduling:
nodeSelector:
katacontainers.io/kata-runtime: "true"
---
kind: RuntimeClass
apiVersion: node.k8s.io/v1
metadata:
name: kata-qemu-se
handler: kata-qemu-se
Expand Down
4 changes: 2 additions & 2 deletions tools/packaging/kata-deploy/scripts/kata-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function get_kata_containers_config_path() {
# Map the runtime shim name to the appropriate configuration
# file directory.
case "$shim" in
cloud-hypervisor | dragonball) config_path="$rust_config_path" ;;
cloud-hypervisor | dragonball | qemu-runtime-rs) config_path="$rust_config_path" ;;
*) config_path="$golang_config_path" ;;
esac

Expand Down Expand Up @@ -360,7 +360,7 @@ function configure_different_shims_base() {
# Map the runtime shim name to the appropriate
# containerd-shim-kata-v2 binary
case "$shim" in
cloud-hypervisor | dragonball)
cloud-hypervisor | dragonball | qemu-runtime-rs)
ln -sf /opt/kata/runtime-rs/bin/containerd-shim-kata-v2 "${shim_file}" ;;
*)
ln -sf /opt/kata/bin/containerd-shim-kata-v2 "${shim_file}" ;;
Expand Down

0 comments on commit 377ccc0

Please sign in to comment.