MCPcopy
hub / github.com/kubernetes-sigs/cri-tools

github.com/kubernetes-sigs/cri-tools @v1.36.0 sqlite

repository ↗ · DeepWiki ↗ · release v1.36.0 ↗
365 symbols 1,633 edges 82 files 212 documented · 58%
README

cri-tools

CLI and validation tools for Kubelet Container Runtime Interface (CRI) .

Build Status critest containerd CRI-O Go Report Card

What is the scope of this project?

cri-tools aims to provide a series of debugging and validation tools for Kubelet CRI, which includes:

  • crictl: CLI for kubelet CRI.
  • critest: validation test suites for kubelet CRI.

What is not in scope for this project?

  • Building a new kubelet container runtime based on CRI.
  • Managing pods/containers for CRI-compatible runtimes by end-users, e.g. pods created by crictl may be removed automatically by kubelet because of non-exist on the kube-apiserver.

Compatibility matrix: cri-tools ⬄ Kubernetes

Kubernetes Version cri-tools Version cri-tools branch
≥ 1.27.x ≥ 1.27.x master
≥ 1.16.x ≤ 1.26.x ≥ 1.16.x ≤ 1.26.x master
1.15.X v1.15.0 release-1.15
1.14.X v1.14.0 release-1.14
1.13.X v1.13.0 release-1.13
1.12.X v1.12.0 release-1.12
1.11.X v1.11.1 release-1.11
1.10.X v1.0.0-beta.2 release-1.10
1.9.X v1.0.0-alpha.1 release-1.9
1.8.X v0.2 release-1.8
1.7.X v0.1 release-1.7

It's recommended to use the same cri-tools and Kubernetes minor version, because new features added to the Container Runtime Interface (CRI) may not be fully supported if they diverge.

cri-tools follows the Kubernetes release cycles with respect to its minor versions (1.x.y). Patch releases (1.x.z) for Kubernetes are not in sync with those from cri-tools, because they are scheduled for each month, whereas cri-tools provides them only if necessary. If a Kubernetes release goes End of Life, then the corresponding cri-tools version can be considered in the same way.

All new minor versions of cri-tools are being created from the master branch, whereas corresponding release-1.x branches will be created if a patch release is planned.

See the roadmap for information about current and future milestones.

Install

Install crictl

VERSION="v1.35.0"
wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION/crictl-$VERSION-linux-amd64.tar.gz
sudo tar zxvf crictl-$VERSION-linux-amd64.tar.gz -C /usr/local/bin
rm -f crictl-$VERSION-linux-amd64.tar.gz

Install critest

VERSION="v1.35.0"
wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION/critest-$VERSION-linux-amd64.tar.gz
sudo tar zxvf critest-$VERSION-linux-amd64.tar.gz -C /usr/local/bin
rm -f critest-$VERSION-linux-amd64.tar.gz

Documentation

Community, discussion, contribution, and support

Learn how to engage with the Kubernetes community on the community page.

You can reach the maintainers of this project at:

Contributing

Interested in contributing? Check out the documentation.

Code of conduct

Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.

Core symbols most depended-on inside this repo

String
called by 120
pkg/validate/streaming.go
ExpectNoError
called by 95
pkg/framework/util.go
NewUUID
called by 87
pkg/framework/util.go
startContainer
called by 57
pkg/validate/container.go
Logf
called by 54
pkg/framework/util.go
InterruptableRPC
called by 39
cmd/crictl/util.go
getContainerStatus
called by 37
pkg/validate/container.go
BuildContainerMetadata
called by 35
pkg/framework/util.go

Shape

Function 282
Method 42
Struct 35
TypeAlias 6

Languages

Go100%

Modules by API surface

pkg/validate/security_context_linux.go29 symbols
pkg/validate/container.go26 symbols
pkg/framework/util.go25 symbols
cmd/crictl/util.go25 symbols
cmd/crictl/container.go25 symbols
cmd/crictl/image.go19 symbols
test/framework/framework.go17 symbols
cmd/crictl/sandbox.go15 symbols
pkg/validate/pod.go12 symbols
pkg/validate/streaming.go10 symbols
cmd/crictl/pod_stats.go9 symbols
cmd/crictl/container_stats.go9 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

cyphar.com/go-pathrsv0.2.1 · 1×
github.com/Azure/go-ansitermv0.0.0-2025010203350 · 1×
github.com/JeffAshton/win_pdhv0.0.0-2016110914355 · 1×
github.com/Masterminds/semver/v3v3.4.0 · 1×
github.com/Microsoft/go-winiov0.6.2 · 1×
github.com/Microsoft/hcsshimv0.11.4 · 1×
github.com/Mirantis/cri-dockerdv0.3.15 · 1×
github.com/NYTimes/gziphandlerv1.1.1 · 1×
github.com/armon/circbufv0.0.0-2015082700494 · 1×
github.com/asaskevich/govalidatorv0.0.0-2019042411103 · 1×
github.com/bahlo/generic-list-gov0.2.0 · 1×

For agents

$ claude mcp add cri-tools \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact