Getting Started with Kubernetes | Kubernetes Container Runtime Interface

CRI Introduction

CRI Implementation

CRI

  • The CRI server provides generic interfaces used to create and delete containers.
  • The streaming server provides streaming data interfaces such as exec and port-forward.

Container Lifecycle Management Through the CRI

  • Kubelet calls the RunPodSandbox interface to create a pod container to store container-related resources, such as the network space, PID space, and process space.
  • Kubelet calls the CreatContainer interface to create a business container in the pod container space.
  • Kubelet calls the StartContainer interface to start the container. The interfaces used to destroy containers are StopContainer and RemoveContainer.

CRI Streaming Interface

CRI Implementations

  • CRI-containerd
  • CRI-O
  • PouchContainer @alibaba

CRI-containerd

CRI-O

Related Tools

  • crictl
  • critest
  • Performance tools

FAQ

Summary

  • The CRI is intended to decouple the container runtime from Kubernetes.
  • CRI implementations include CRI-O and CRI-containerd.
  • cri-tools are used for CRI debugging, and critest is used for CRI testing.

Original Source:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com