Skip to content

In urunc-deploy cleanup does not restart the container runtime #1069

Description

@cmainas

When using urunc-deploy to remove urunc form a Kubernetes cluster following the instructions at https://urunc.io/tutorials/How-to-urunc-on-k8s/#urunc-deploy the uninstall steps removes the urunc binaries but never restarts containerd. The problem seems to be in the reset step which removes the node label that schedules its own DaemonSet pod and therefore the DaemonSet controller deletes the pod and restart never takes place. As a result, containerd keeps the urunc runtime in memory with the binaries gone and every running runtimeClassName: urunc pod is stuck in Terminating.

Steps to reproduce.

kubectl apply -f deployment/urunc-deploy/urunc-rbac/urunc-rbac.yaml
kubectl apply -k deployment/urunc-deploy/urunc-deploy/overlays/k3s
kubectl apply -f deployment/urunc-deploy/runtimeclasses/runtimeclass.yaml
# run a unikernel pod with runtimeClassName: urunc and leave it running
kubectl delete -k deployment/urunc-deploy/urunc-deploy/overlays/k3s
kubectl apply  -k deployment/urunc-deploy/urunc-cleanup/overlays/k3s
sleep 60; kubectl delete -k deployment/urunc-deploy/urunc-cleanup/overlays/k3s
kubectl delete pod <unikernel pod>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    K8s/ToolsRelated to container/cloud native tools, orchestratorsbugSomething isn't working

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions