K8S CRI

CRI

CRI: Container Runtime Intarface

定义了k8s和container runtime进行交互的接口.

是k8s与container交互的标准.

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

  • containerd
  • cri-o
  • rkt
  • kata
  • rancher

docker

k8s_1.20 开始警告不再支持docker.

k8s_1.23 开始移除dockershim.

/var/run/dockerhsim.sock

containerd

/run/container/containerd.sock

https://github.com/containerd/containerd

安装配置:

https://kubernetes.io/zh/docs/setup/production-environment/container-runtimes/#containerd

CRI-O

redhat.

/var/run/crio/crio.sock

https://github.com/cri-o/cri-o

kata

https://github.com/kata-containers/runtime

rkt

redhat(coreos)

https://github.com/rkt/rkt


Designed by Canux