News for hackers. Stuff that matters.
Re:Kubernetes Production Patterns and Anti-Patterns by atombender on Friday June 09, 2017 @05:38PM (#14524802)
Good news about zombies: Kubernetes will soon solve this by having the pause container (which is automatically included in every pod) automatically reap children. [1]

Note that this change depends on the shared PID namespace support, which a larger, still-ongoing endeavour [2].

[1] https://github.com/kubernetes/kubernetes/commit/81d27aa23969...

[2] https://github.com/kubernetes/kubernetes/issues/1615

Re:Kubernetes Production Patterns and Anti-Patterns by shykes on Friday June 09, 2017 @10:30PM (#14525872)
The zombie reaping problem is fixed in Docker. You can simply use `docker run --init` with no argument, and it will spawn a tiny init that will reap children processes correctly. We don't enable the flag by default to respect backwards compatibility.
Re:Kubernetes Production Patterns and Anti-Patterns by dvdgsng on Saturday June 10, 2017 @07:11AM (#14526938)
Sidenote: this Docker native implementation uses Tini (https://github.com/krallin/tini#using-tini)
Re:Kubernetes Production Patterns and Anti-Patterns by atmosx on Saturday June 10, 2017 @02:40AM (#14526409)
Could you explain a bit further?

What does backwards compatibility mean in this context. The API?

Re:Kubernetes Production Patterns and Anti-Patterns by shykes on Saturday June 10, 2017 @07:42PM (#14529848)
In this context it means preserving the default behavior of running the command specified in the image as PID 1, and not injecting any extra processes in the namespace. The difference in the runtime environment is subtle, but some applications rely on it. If we changed this default those applications would behave differently after upgrading to Docker 1.13 or later.
Re:Kubernetes Production Patterns and Anti-Patterns by lobster_johnson on Friday June 09, 2017 @10:37PM (#14525882)
This would require Kubernetes to do the same, which I don't think it does?
Re:Kubernetes Production Patterns and Anti-Patterns by shykes on Friday June 09, 2017 @10:38PM (#14525888)
It's up to the Kubernetes developers to decide if they want to use that feature of Docker, yes.
Re:Kubernetes Production Patterns and Anti-Patterns by lemoncucumber on Friday June 09, 2017 @10:48PM (#14525908)
I believe shared pid namespaces are landing in kubernetes 1.7.0 and therefore should be available relatively soon, no?
Re:Kubernetes Production Patterns and Anti-Patterns by lobster_johnson on Friday June 09, 2017 @11:09PM (#14525956)
Not sure. The changelog doesn't include PID namespaces yet, not sure if it will be merged: https://github.com/kubernetes/kubernetes/blob/master/CHANGEL...
Re:Kubernetes Production Patterns and Anti-Patterns by lemoncucumber on Saturday June 10, 2017 @12:19PM (#14527867)
It's in there, under "Changelog since v1.7.0-alpha.3"
Re:Kubernetes Production Patterns and Anti-Patterns by lobster_johnson on Saturday June 10, 2017 @05:21PM (#14529258)
Oops, I was on mobile and didn't see that the list wasn't linear with respect to version numbers. That's awesome.

I hope GKE is planning to migrate to a newer Docker version soon (they've been on 1.11.2 for a long time) so we can benefit from this.

Re:Kubernetes Production Patterns and Anti-Patterns by CurtMonash on Sunday June 11, 2017 @01:40AM (#14530799)
The zombie problem is solved by reaping children?

I guess Craster was right after all.

:)