kubeasz/roles/containerd/templates/config.toml.j2

245 lines
7.5 KiB
Plaintext
Raw Normal View History

2021-04-19 00:00:55 +08:00
disabled_plugins = []
2022-01-04 19:26:42 +08:00
imports = []
2021-04-19 00:00:55 +08:00
oom_score = 0
2022-01-04 19:26:42 +08:00
plugin_dir = ""
required_plugins = []
root = "{{ CONTAINERD_STORAGE_DIR }}"
state = "/run/containerd"
2022-06-09 22:33:46 +08:00
temp = ""
2022-01-04 19:26:42 +08:00
version = 2
[cgroup]
path = ""
[debug]
address = ""
format = ""
gid = 0
level = ""
uid = 0
2019-05-18 16:48:58 +08:00
[grpc]
address = "/run/containerd/containerd.sock"
gid = 0
max_recv_message_size = 16777216
max_send_message_size = 16777216
2022-01-04 19:26:42 +08:00
tcp_address = ""
2022-06-09 22:33:46 +08:00
tcp_tls_ca = ""
2022-01-04 19:26:42 +08:00
tcp_tls_cert = ""
tcp_tls_key = ""
2019-05-18 16:48:58 +08:00
uid = 0
[metrics]
address = ""
grpc_histogram = false
[plugins]
2022-01-04 19:26:42 +08:00
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.gc.v1.scheduler"]
deletion_threshold = 0
mutation_threshold = 100
2022-01-04 19:26:42 +08:00
pause_threshold = 0.02
2021-04-19 00:00:55 +08:00
schedule_delay = "0s"
startup_delay = "100ms"
2022-01-04 19:26:42 +08:00
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri"]
2022-06-09 22:33:46 +08:00
device_ownership_from_security_context = false
2022-01-04 19:26:42 +08:00
disable_apparmor = false
disable_cgroup = false
disable_hugetlb_controller = true
disable_proc_mount = false
2021-04-19 00:00:55 +08:00
disable_tcp_service = true
2019-05-18 16:48:58 +08:00
enable_selinux = false
enable_tls_streaming = false
2022-06-09 22:33:46 +08:00
enable_unprivileged_icmp = false
enable_unprivileged_ports = false
2022-01-04 19:26:42 +08:00
ignore_image_defined_volumes = false
max_concurrent_downloads = 3
2019-05-18 16:48:58 +08:00
max_container_log_line_size = 16384
2022-01-04 19:26:42 +08:00
netns_mounts_under_state_dir = false
2021-04-19 00:00:55 +08:00
restrict_oom_score_adj = false
2022-01-04 19:26:42 +08:00
sandbox_image = "{{ SANDBOX_IMAGE }}"
selinux_category_range = 1024
stats_collect_period = 10
stream_idle_timeout = "4h0m0s"
stream_server_address = "127.0.0.1"
stream_server_port = "0"
systemd_cgroup = false
2021-04-19 00:00:55 +08:00
tolerate_missing_hugetlb_controller = true
2022-01-04 19:26:42 +08:00
unset_seccomp_profile = ""
[plugins."io.containerd.grpc.v1.cri".cni]
bin_dir = "{{ bin_dir }}"
conf_dir = "/etc/cni/net.d"
conf_template = "/etc/cni/net.d/10-default.conf"
max_conf_num = 1
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".containerd]
default_runtime_name = "runc"
disable_snapshot_annotations = true
discard_unpacked_layers = false
2022-06-09 22:33:46 +08:00
ignore_rdt_not_enabled_errors = false
2022-01-04 19:26:42 +08:00
no_pivot = false
snapshotter = "overlayfs"
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".containerd.default_runtime]
base_runtime_spec = ""
2022-01-04 19:26:42 +08:00
container_annotations = []
pod_annotations = []
privileged_without_host_devices = false
2019-05-18 16:48:58 +08:00
runtime_engine = ""
runtime_root = ""
2022-01-04 19:26:42 +08:00
runtime_type = ""
[plugins."io.containerd.grpc.v1.cri".containerd.default_runtime.options]
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
2022-01-04 19:26:42 +08:00
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
2022-01-04 19:26:42 +08:00
base_runtime_spec = ""
container_annotations = []
pod_annotations = []
privileged_without_host_devices = false
2021-04-19 00:00:55 +08:00
runtime_engine = ""
runtime_root = ""
2022-01-04 19:26:42 +08:00
runtime_type = "io.containerd.runc.v2"
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
2022-01-04 19:26:42 +08:00
BinaryName = ""
CriuImagePath = ""
CriuPath = ""
CriuWorkPath = ""
IoGid = 0
IoUid = 0
NoNewKeyring = false
NoPivotRoot = false
Root = ""
ShimCgroup = ""
2021-04-19 00:00:55 +08:00
SystemdCgroup = true
2022-01-04 19:26:42 +08:00
[plugins."io.containerd.grpc.v1.cri".containerd.untrusted_workload_runtime]
base_runtime_spec = ""
container_annotations = []
pod_annotations = []
privileged_without_host_devices = false
runtime_engine = ""
runtime_root = ""
runtime_type = ""
[plugins."io.containerd.grpc.v1.cri".containerd.untrusted_workload_runtime.options]
[plugins."io.containerd.grpc.v1.cri".image_decryption]
key_model = "node"
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".registry]
2022-01-04 19:26:42 +08:00
[plugins."io.containerd.grpc.v1.cri".registry.auths]
[plugins."io.containerd.grpc.v1.cri".registry.configs]
2022-06-09 22:33:46 +08:00
[plugins."io.containerd.grpc.v1.cri".registry.configs."easzlab.io.local:5000".tls]
insecure_skip_verify = true
2022-01-04 19:26:42 +08:00
[plugins."io.containerd.grpc.v1.cri".registry.configs."{{ HARBOR_REGISTRY }}".tls]
insecure_skip_verify = true
2022-01-04 19:26:42 +08:00
[plugins."io.containerd.grpc.v1.cri".registry.headers]
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
2022-06-09 22:33:46 +08:00
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."easzlab.io.local:5000"]
endpoint = ["http://easzlab.io.local:5000"]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."{{ HARBOR_REGISTRY }}"]
endpoint = ["https://{{ HARBOR_REGISTRY }}"]
2022-01-04 19:26:42 +08:00
{% if ENABLE_MIRROR_REGISTRY %}
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
endpoint = ["https://docker.nju.edu.cn/", "https://kuamavit.mirror.aliyuncs.com"]
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."gcr.io"]
endpoint = ["https://gcr.nju.edu.cn"]
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."k8s.gcr.io"]
endpoint = ["https://gcr.nju.edu.cn/google-containers/"]
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."quay.io"]
endpoint = ["https://quay.nju.edu.cn"]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."ghcr.io"]
endpoint = ["https://ghcr.nju.edu.cn"]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."nvcr.io"]
endpoint = ["https://ngc.nju.edu.cn"]
{% endif %}
2022-01-04 19:26:42 +08:00
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.grpc.v1.cri".x509_key_pair_streaming]
2019-05-18 16:48:58 +08:00
tls_cert_file = ""
tls_key_file = ""
2022-01-04 19:26:42 +08:00
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.internal.v1.opt"]
path = "/opt/containerd"
2022-01-04 19:26:42 +08:00
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.internal.v1.restart"]
interval = "10s"
2022-01-04 19:26:42 +08:00
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.metadata.v1.bolt"]
content_sharing_policy = "shared"
2022-01-04 19:26:42 +08:00
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.monitor.v1.cgroups"]
no_prometheus = false
2022-01-04 19:26:42 +08:00
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.runtime.v1.linux"]
2022-01-04 19:26:42 +08:00
no_shim = false
2019-05-18 16:48:58 +08:00
runtime = "runc"
runtime_root = ""
2022-01-04 19:26:42 +08:00
shim = "containerd-shim"
2019-05-18 16:48:58 +08:00
shim_debug = false
2022-01-04 19:26:42 +08:00
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.runtime.v2.task"]
platforms = ["linux/amd64"]
2022-01-04 19:26:42 +08:00
2021-04-19 00:00:55 +08:00
[plugins."io.containerd.service.v1.diff-service"]
default = ["walking"]
2022-01-04 19:26:42 +08:00
[plugins."io.containerd.snapshotter.v1.aufs"]
2021-04-19 00:00:55 +08:00
root_path = ""
2022-01-04 19:26:42 +08:00
[plugins."io.containerd.snapshotter.v1.btrfs"]
root_path = ""
[plugins."io.containerd.snapshotter.v1.devmapper"]
2021-04-19 00:00:55 +08:00
async_remove = false
2022-01-04 19:26:42 +08:00
base_image_size = ""
pool_name = ""
root_path = ""
[plugins."io.containerd.snapshotter.v1.native"]
root_path = ""
[plugins."io.containerd.snapshotter.v1.overlayfs"]
root_path = ""
[plugins."io.containerd.snapshotter.v1.zfs"]
root_path = ""
[proxy_plugins]
[stream_processors]
[stream_processors."io.containerd.ocicrypt.decoder.v1.tar"]
accepts = ["application/vnd.oci.image.layer.v1.tar+encrypted"]
args = ["--decryption-keys-path", "/etc/containerd/ocicrypt/keys"]
env = ["OCICRYPT_KEYPROVIDER_CONFIG=/etc/containerd/ocicrypt/ocicrypt_keyprovider.conf"]
path = "ctd-decoder"
returns = "application/vnd.oci.image.layer.v1.tar"
[stream_processors."io.containerd.ocicrypt.decoder.v1.tar.gzip"]
accepts = ["application/vnd.oci.image.layer.v1.tar+gzip+encrypted"]
args = ["--decryption-keys-path", "/etc/containerd/ocicrypt/keys"]
env = ["OCICRYPT_KEYPROVIDER_CONFIG=/etc/containerd/ocicrypt/ocicrypt_keyprovider.conf"]
path = "ctd-decoder"
returns = "application/vnd.oci.image.layer.v1.tar+gzip"
[timeouts]
"io.containerd.timeout.shim.cleanup" = "5s"
"io.containerd.timeout.shim.load" = "5s"
"io.containerd.timeout.shim.shutdown" = "3s"
"io.containerd.timeout.task.state" = "2s"
[ttrpc]
address = ""
gid = 0
uid = 0