配置K8S时 可能会用到#systemcd来管理containerd,这https://raw.githubusercontent.com/containerd/containerd/main/containerd.service 链接会访问出问题。这里附containerd.service,直接复制就可以用。你也可以打开containerd/containerd.service at main · containerd/containerd (github.com) 来复制。
同时我这里附了网盘的 containerd-1.6.8-linux-amd64.tar.gz 点击下载
cni-plugins-linux-amd64-v1.1.1.tgz 点击下载 的软件包,方便使用。如果你某天来访发现不能访问,请别着急。留言给我,我一般会在5-15分钟内响应你的回复。这两个文件可能有需要根据实际情况修改。如有修改不明白的地方也可以联系我。一般是修改主机名、镜像链接、IP之类的。
同时在搭建K8S遇到问题时,你也可以和我联系,以便及时提供义务帮忙。
# 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] #uncomment to enable the experimental sbservice (sandboxed) version of containerd/cri integration #Environment="ENABLE_CRI_SANDBOXES=sandboxed" ExecStartPre=-/sbin/modprobe overlay ExecStart=/usr/local/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
标签:infinity,amd64,service,License,containerd,linux From: https://www.cnblogs.com/zhg1016/p/17053136.html