# Container Runtime (CRI)

  • https://kubernetes.io/docs/setup/production-environment/container-runtimes/

# Docker

  • /var/lib/docker/containers/<container id>/<container id>-json.log

# Containerd

  • http://dockone.io/search/q-Y29udGFpbmVyZA==#all

  • http://dockone.io/article/5806

  • https://kubernetes.io/blog/2017/11/containerd-container-runtime-options-kubernetes/

  • https://kubernetes.io/blog/2018/05/24/kubernetes-containerd-integration-goes-ga/

  • https://github.com/containerd/cri/blob/master/docs/config.md

  • http://dockone.io/article/10651

# CRI-O

  • https://www.jianshu.com/p/5c7ffe9328e9
  • https://github.com/cri-o/cri-o/blob/main/install.md
  • https://github.com/cri-o/cri-o/blob/main/tutorials/kubernetes.md
  • https://github.com/cri-o/cri-o/blob/main/tutorials/install-distro.md

crio 会加载 /etc/containers/ 下的配置。

  • /var/run/containers/storage

# 日志

  • https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node/kubelet-cri-logging.md

  • /var/log/containers

  • /var/log/pods

# Fedora kubernetes DNS 解析不了

virbr0 网卡有关,关闭相关进程。

$ sudo nmcli device delete virbr0

$ sudo systemctl disable libvirtd.service
  • https://www.cnblogs.com/cloudos/p/8288041.html

# 镜像加速器

最好在运行时级别设置好镜像加速器,例如 gcr.io => gcr.mirror,具体请查看运行时配置文件。

# Cgroup Driver

  • cgroupfs or systemd

  • https://kubernetes.io/docs/setup/production-environment/container-runtimes/#cgroup-drivers