This commit is contained in:
@ -0,0 +1,33 @@
|
||||
## template: jinja
|
||||
|
||||
# Use config version 2 to enable new configuration fields.
|
||||
# Config file is parsed as version 1 by default.
|
||||
version = 2
|
||||
|
||||
{% if 'imports' not in containerd_additional_settings | b64decode %}
|
||||
imports = ["/etc/containerd/conf.d/*.toml"]
|
||||
{% endif %}
|
||||
|
||||
[plugins]
|
||||
[plugins."io.containerd.grpc.v1.cri"]
|
||||
sandbox_image = "{{ pause_image }}"
|
||||
{% if kubernetes_semver is version('v1.21.0', '>=') %}
|
||||
[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
|
||||
{% if 'spin' in containerd_wasm_shims_runtimes %}
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.spin]
|
||||
runtime_type = "io.containerd.spin.v1"
|
||||
{% endif %}
|
||||
{% if 'slight' in containerd_wasm_shims_runtimes %}
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.slight]
|
||||
runtime_type = "io.containerd.slight.v1"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if packer_builder_type.startswith('azure') %}
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.headers]
|
||||
X-Meta-Source-Client = ["azure/capz"]
|
||||
{% endif %}
|
||||
|
||||
{{containerd_additional_settings | b64decode}}
|
1
ansible/roles/containerd/templates/etc/crictl.yaml
Normal file
1
ansible/roles/containerd/templates/etc/crictl.yaml
Normal file
@ -0,0 +1 @@
|
||||
runtime-endpoint: unix://{{ containerd_cri_socket }}
|
@ -0,0 +1,6 @@
|
||||
[Service]
|
||||
Environment=PATH=/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
|
||||
ExecStartPre=mkdir -p /run/docker/libcontainerd
|
||||
ExecStartPre=ln -fs /run/containerd/containerd.sock /run/docker/libcontainerd/docker-containerd.sock
|
||||
ExecStart=
|
||||
ExecStart=/opt/bin/containerd --config /etc/containerd/config.toml
|
@ -0,0 +1,10 @@
|
||||
[Service]
|
||||
{% if http_proxy %}
|
||||
Environment="HTTP_PROXY={{ http_proxy }}"
|
||||
{% endif %}
|
||||
{% if https_proxy %}
|
||||
Environment="HTTPS_PROXY={{ https_proxy }}"
|
||||
{% endif %}
|
||||
{% if no_proxy %}
|
||||
Environment="NO_PROXY={{ no_proxy }}"
|
||||
{% endif %}
|
@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
# Do not limit the number of tasks that can be spawned by containerd
|
||||
TasksMax=infinity
|
@ -0,0 +1,8 @@
|
||||
[Service]
|
||||
# Decreases the likelihood that containerd is killed due to memory
|
||||
# pressure.
|
||||
#
|
||||
# Please see the following link for more information about the
|
||||
# OOMScoreAdjust configuration property:
|
||||
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#OOMScoreAdjust=
|
||||
OOMScoreAdjust=-999
|
Reference in New Issue
Block a user