Last active
January 3, 2025 22:19
-
-
Save neoaggelos/2946240e0ddf2971851c22197ae63645 to your computer and use it in GitHub Desktop.
containerd config.toml used for cluster-api-provider-lxc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version = 2 | |
[plugins."io.containerd.grpc.v1.cri"] | |
stream_server_address = "127.0.0.1" | |
stream_server_port = "10010" | |
enable_selinux = false | |
enable_unprivileged_ports = true | |
enable_unprivileged_icmp = true | |
device_ownership_from_security_context = false | |
sandbox_image = "registry.k8s.io/pause:3.10" | |
[plugins."io.containerd.grpc.v1.cri".containerd] | |
snapshotter = "overlayfs" | |
disable_snapshot_annotations = true | |
[plugins."io.containerd.grpc.v1.cri".cni] | |
bin_dir = "/opt/cni/bin" | |
conf_dir = "/etc/cni/net.d" | |
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc] | |
runtime_type = "io.containerd.runc.v2" | |
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options] | |
SystemdCgroup = true | |
[plugins."io.containerd.grpc.v1.cri".registry] | |
config_path = "/etc/containerd/certs.d" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment