integ/kubernetes/kubernetes-1.22.5/centos
Daniel Safta f3c18b0f79 Add k8s container cleanup
When executing a reboot/shutdown
k8s pods are not receiving the SIGTERM
signal which leads some of them to
unexpected behaviour such as generating
huge coredumps.

There is an upstream issue regarding this:
https://github.com/kubernetes/kubernetes/issues/107158
The problem seems to be systemd related
but this commit addresses the problem
with a workaround.

This commit introduces a new script that
will cleanup all the remaing pods and will
be run after kubelet is stopped.

The script is executed successfully when
kubelet stops and the pods are stopped
before the system shuts down.

Closes-bug: 1964111
Signed-off-by: Daniel Safta <daniel.safta@windriver.com>
Change-Id: Ia0376aa510dd0dc3983e16cd89840726c15d6c92
2022-03-09 11:10:51 -05:00
..
files Add k8s container cleanup 2022-03-09 11:10:51 -05:00
Readme.rst Add kubernetes 1.22.5 pkg 2022-01-28 11:56:47 +02:00
build_srpm.data Add kubernetes 1.22.5 pkg 2022-01-28 11:56:47 +02:00
kubernetes.spec Add kubernetes 1.22.5 pkg 2022-01-28 11:56:47 +02:00
kubernetes.spec.orig Add kubernetes 1.22.5 pkg 2022-01-28 11:56:47 +02:00

Readme.rst

The spec file used here was from the kubernetes 1.10.0 src rpm. The orig file is included to help show modifications made to that spec file, to help understand which changes were needed and to assist with future upversioning.