kinvolk / seccompagent

agent for handling seccomp descriptors for container runtimes
Apache License 2.0
41 stars 10 forks source link

Handle seccomp agent upgrades without disruption to running containers #8

Open rata opened 3 years ago

rata commented 3 years ago

Ideal future situation Roll a new version of the agent without impact on any running container on the nodes.

Implementation options Some random ideas that come to mind:

alban commented 3 years ago

We could get some inspiration from systemd and its "FD Store" facility that stores file descriptors from services when they restart (systemctl restart). See FDSTORE=1 in

We could have this second daemonset you mention (seccomp-fdstorage) to store the fds along with the related metadata.

But is the additional complexity worth it?

rata commented 3 years ago

Oooor, just rely on the host systemd to save the fds for us, using that functionality. No "inspiration", just use it!

We should explore more that option (like security concerns, etc.) but seems worth exploring. Also, Kubernetes graceful shutdown KEP works only with systemd hosts, so most hosts really should have systemd. Maybe we can't use it if we want to run on GKE Autopilot, but all at its own time :)