News for hackers. Stuff that matters.
Re:Kubernetes 1.7: Security Hardening, Stateful Application ... by djb_hackernews on Friday June 30, 2017 @11:21AM (#14671275)
Does Kubernetes support adding "middleware" between it and docker? ie when it comes time to do a container start, it calls my custom plugin instead of docker directly? I read the docs about extensibility and it didn't seem so.
Re:Kubernetes 1.7: Security Hardening, Stateful Application ... by gtirloni on Friday June 30, 2017 @11:24AM (#14671301)
You're probably interested in the Container Runtime Interface [0]

0 - http://blog.kubernetes.io/2016/12/container-runtime-interfac...

Re:Kubernetes 1.7: Security Hardening, Stateful Application ... by davidopp_ on Saturday July 01, 2017 @02:43AM (#14675752)
That idea was proposed here: https://github.com/kubernetes/features/issues/246 ; there's a pretty thorough design doc linked to from the issue. The decision was made not to add it to the system for now (see the issue for discussion).
Re:Kubernetes 1.7: Security Hardening, Stateful Application ... by puzzle on Friday June 30, 2017 @11:53AM (#14671512)
What kind of plugins are you thinking of?
Re:Kubernetes 1.7: Security Hardening, Stateful Application ... by djb_hackernews on Friday June 30, 2017 @12:04PM (#14671590)
This is a very simple example. But we require setting the pid limit cgroup. Right now Kubernetes doesn't support this (again, just an example, there are a lot of things kubernetes doesn't support that we need beyond pid limits).

So it'd be nice to be able to proxy the call to docker to inject our own config before hitting docker. It looks like CRI is exactly what we'd need, possibly maintaining our own fork of the docker shim? Trying to figure out if there is a way to put in arbitrary data in the config sent to the docker shim[0]

[0] https://github.com/kubernetes/kubernetes/blob/master/pkg/kub...