# Use config version 2 to enable new configuration fields.
version = 2
oom_score = 0
[grpc]
uid = 0
gid = 0
max_recv_message_size = 16777216
max_send_message_size = 16777216
[debug]
address = ""
uid = 0
gid = 0
[metrics]
address = "127.0.0.1:1338"
grpc_histogram = false
[cgroup]
path = ""
# The 'plugins."io.containerd.grpc.v1.cri"' table contains all of the server options.
[plugins."io.containerd.grpc.v1.cri"]
stream_server_address = "127.0.0.1"
stream_server_port = "0"
enable_selinux = false
sandbox_image = "k8s.gcr.io/pause:3.1"
stats_collect_period = 10
enable_tls_streaming = false
max_container_log_line_size = 16384
# 'plugins."io.containerd.grpc.v1.cri".containerd' contains config related to containerd
[plugins."io.containerd.grpc.v1.cri".containerd]
# snapshotter is the snapshotter used by containerd.
snapshotter = "${SNAPSHOTTER}"
# no_pivot disables pivot-root (linux only), required when running a container in a RamDisk with runc.
# This only works for runtime type "io.containerd.runtime.v1.linux".
no_pivot = false
# default_runtime_name is the default runtime name to use.
default_runtime_name = "${RUNTIME}"
# 'plugins."io.containerd.grpc.v1.cri".containerd.runtimes' is a map from CRI RuntimeHandler strings, which specify types
# of runtime configurations, to the matching configurations.
# In this example, 'runc' is the RuntimeHandler string to match.
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
# runtime_type is the runtime type to use in containerd e.g. io.containerd.runtime.v1.linux
runtime_type = "io.containerd.runc.v1"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.nvidia-container-runtime]
# runtime_type is the runtime type to use in containerd e.g. io.containerd.runtime.v1.linux
runtime_type = "io.containerd.runc.v1"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.nvidia-container-runtime.options]
BinaryName = "nvidia-container-runtime"
# 'plugins."io.containerd.grpc.v1.cri".cni' contains config related to cni
[plugins."io.containerd.grpc.v1.cri".cni]
# bin_dir is the directory in which the binaries for the plugin is kept.
bin_dir = "${SNAP_DATA}/opt/cni/bin"
# conf_dir is the directory in which the admin places a CNI conf.
conf_dir = "${SNAP_DATA}/args/cni-network"
# 'plugins."io.containerd.grpc.v1.cri".registry' contains config related to the registry
[plugins."io.containerd.grpc.v1.cri".registry]
# 'plugins."io.containerd.grpc.v1.cri".registry.mirrors' are namespace to mirror mapping for all namespaces.
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
endpoint = ["https://registry-1.docker.io", ]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:32000"]
endpoint = ["http://localhost:32000"]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."xx.yy.zz.hh:53680"]
endpoint = ["http://xx.yy.zz.hh:53680"]
sudo snap install microk8s --channel 1.20/latest --classic
Warning: Specifying a channel "1.20/latest" is relying on undefined behaviour. Interpreting it as
"1.20/latest" for now, but this will be an error later.
error: invalid risk in channel name: 1.20/latest
Mar 28 10:30:00 ubuntu1804 microk8s.daemon-containerd[21375]: + CILIUM_SOCK=/var/snap/microk8s/2094/var/run/cilium/cilium.sock
Mar 28 10:30:00 ubuntu1804 microk8s.daemon-containerd[21375]: + exec /snap/microk8s/2094/bin/containerd --config /var/snap/microk8s/2094/args/containerd.toml --root /var/snap/microk8s/common/var/lib/containerd --state /var/snap/microk8s/common/run/containerd --address /var/snap/microk8s/common/run/containerd.sock
Mar 28 10:30:00 ubuntu1804 microk8s.daemon-containerd[21375]: /snap/microk8s/2094/bin/containerd: symbol lookup error: /snap/microk8s/2094/bin/containerd: undefined symbol: seccomp_api_set
Mar 28 10:30:00 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Main process exited, code=exited, status=127/n/a
Mar 28 10:30:00 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Failed with result ‘exit-code’.
Mar 28 10:30:00 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Service hold-off time over, scheduling restart.
Mar 28 10:30:00 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Scheduled restart job, restart counter is at 5.
Mar 28 10:30:00 ubuntu1804 systemd[1]: Stopped Service for snap application microk8s.daemon-containerd.
Mar 28 10:30:00 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Start request repeated too quickly.
Mar 28 10:30:00 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Failed with result ‘exit-code’.
Mar 28 10:30:00 ubuntu1804 systemd[1]: Failed to start Service for snap application microk8s.daemon-containerd.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Mar 29 03:32:05 ubuntu1804 microk8s.daemon-containerd[12600]: + exec /snap/microk8s/2074/bin/containerd --config /var/snap/microk8s/2074/args/containerd.toml --root /var/snap/microk8s/common/var/lib/containerd --state /var/snap/microk8s/common/run/containerd --address /var/snap/microk8s/common/run/containerd.sock
Mar 29 03:32:05 ubuntu1804 microk8s.daemon-containerd[12600]: /snap/microk8s/2074/bin/containerd: symbol lookup error: /snap/microk8s/2074/bin/containerd: undefined symbol: seccomp_api_set
Mar 29 03:32:05 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Main process exited, code=exited, status=127/n/a
Mar 29 03:32:05 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Failed with result 'exit-code'.
Mar 29 03:32:05 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Service hold-off time over, scheduling restart.
Mar 29 03:32:05 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Scheduled restart job, restart counter is at 5.
Mar 29 03:32:05 ubuntu1804 systemd[1]: Stopped Service for snap application microk8s.daemon-containerd.
Mar 29 03:32:05 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Start request repeated too quickly.
Mar 29 03:32:05 ubuntu1804 systemd[1]: snap.microk8s.daemon-containerd.service: Failed with result 'exit-code'.
Mar 29 03:32:05 ubuntu1804 systemd[1]: Failed to start Service for snap application microk8s.daemon-containerd.