
As documented at https://kubernetes.io/blog/2022/12/09/kubernetes-v1-26-release K8s 1.26 will no longer support containerd 1.5 and lower. Accordingly we are upgrading containerd to 1.6.21. The Debian package for containerd 1.6 comes from "bookworm" and would require us to bring in a newer glibc and newer python3, which is not something we want to do at this point. As a workaround, we are pulling in the prebuilt binaries from the containerd github project, which work fine with our existing packages. It's not a compile-time dependency, but these Ansible changes are needed to actually run K8s 1.26: https://review.opendev.org/c/starlingx/ansible-playbooks/+/879356 Also, the debian packaging tools do not allow binaries to be installed to /usr/local/sbin, so the script that was there previously has been moved to /usr/sbin. There is a corresponding change in the containerd service file override that should be merged at the same time: https://review.opendev.org/c/starlingx/config-files/+/883214 Test Plan: PASS Install AIO-SX with K8s 1.25 and upgrade to K8s 1.26. PASS Install with K8s 1.26 on AIO-SX and ensure the system comes up normally. Story: 2010368 Task: 46590 Change-Id: I9e7a0e28a1b153141ff17a88efa0626314a01c91 Signed-off-by: Chris Friesen <chris.friesen@windriver.com>
41 lines
1.2 KiB
Desktop File
41 lines
1.2 KiB
Desktop File
# Copyright The containerd Authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
[Unit]
|
|
Description=containerd container runtime
|
|
Documentation=https://containerd.io
|
|
After=network.target local-fs.target
|
|
|
|
[Service]
|
|
ExecStartPre=-/sbin/modprobe overlay
|
|
ExecStart=/usr/bin/containerd
|
|
|
|
Type=notify
|
|
Delegate=yes
|
|
KillMode=process
|
|
Restart=always
|
|
RestartSec=5
|
|
# Having non-zero Limit*s causes performance problems due to accounting overhead
|
|
# in the kernel. We recommend using cgroups to do container-local accounting.
|
|
LimitNPROC=infinity
|
|
LimitCORE=infinity
|
|
LimitNOFILE=infinity
|
|
# Comment TasksMax if your systemd version does not supports it.
|
|
# Only systemd 226 and above support this version.
|
|
TasksMax=infinity
|
|
OOMScoreAdjust=-999
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|