OCI: Open Container Initiative,一个标准,定义容器运行时和容器镜像标准。
CRI: Container Runtime Interface。
CRI 标准:
1. 容器的接口, 创建、删除、启动、停止
2. 镜像的接口,拉取、删除
3. pod Sandbox 的接口
kubelet 别调用docker
kubelet --- docker-shim --- docker ----containerd --- containerd-shim ----runc
kubelet ---------------------------------------containerd --- containerd-shim ----runc
在kubernetes 1.24中,已经讲dockershim 移除。
kubelet 调用
pod 是k8s 最小的调度单元。pod 调度到某一个节点上,kubelet 创建运行环境(PodSandBox)
create sandbox --> create container --> start container
stop container --> remove container --> delete sandbox