
This adds a kubelet ExecStartPre script to ensure cgroup is setup prior to kubelet launch. This creates k8s-infra cgroup for a minimal set of resource controllers, and configures cpuset attributes to span all online cpus and nodes. This will do nothing if the k8s-infra cgroup already exists (i.e., assume already configured). NOTE: The creation of directories under /sys/fs/cgroup is volatile, and does not persist reboots. The cpuset.mems and cpuset.cpus is later updated by puppet kubernetes.pp manifest. Tests performed: Standard system: system install, lock/unlock controller & computes, forced reboot: active/standby controller, computes. Change-Id: I6a7aad5c40fe8225e9e16c8d8b40a0cffd76715d Closes-Bug: 1828270 Signed-off-by: Jim Gauld <james.gauld@windriver.com>
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.
The contrib tarball does not have the same versioning as kubernetes and there is little activity in that repo.
The version for the contrib tarball is arbitrary.