Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajiv-k/cricket
A no-op Open Container Initiative-based implementation of Kubernetes Container Runtime Interface
https://github.com/rajiv-k/cricket
containers cri kubelet-cri oci
Last synced: 18 days ago
JSON representation
A no-op Open Container Initiative-based implementation of Kubernetes Container Runtime Interface
- Host: GitHub
- URL: https://github.com/rajiv-k/cricket
- Owner: rajiv-k
- License: mit
- Created: 2023-07-27T07:24:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-28T12:31:17.000Z (over 1 year ago)
- Last Synced: 2024-06-21T16:45:32.449Z (7 months ago)
- Topics: containers, cri, kubelet-cri, oci
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cricket
![Release Version](https://img.shields.io/badge/Release-v0.4.20-blue.svg)
`cricket` is a simple, _terribly lazy_, work-in-progress Open Container Initiative-based implementation of Kubernetes [Container Runtime Interface](https://kubernetes.io/docs/concepts/architecture/cri/).
When asked to do anything by its clients, it just "nods" its imaginary head and silently ignores it (_insert crickets noise here_). It stores some state which helps it to lie in the future. This is by design.It's **NOT** meant to be used for anything serious at all.
## But why?
tl;dr: because we can!Besides, it helps one to see what is happening under the hood and gain a deeper understanding of the layers beneath the kubelet.
I created this mostly for fun ~~and no profit~~.
## Build
```sh
$ make cricket
```## Run
```sh
$ build/cricket
```Once the server is running, it can be interacted with by the [`crictl`](https://github.com/kubernetes-sigs/cri-tools/blob/master/docs/crictl.md) command-line tool.
```sh
$ crictl --runtime-endpoint unix:///tmp/cricket.sock version
Version: v0.4.20
RuntimeName: cricket
RuntimeVersion: v0.4.20
RuntimeApiVersion: v1alpha1
```## Supported commands
- [x] Version
- [ ] RunPodSandbox
- [ ] StopPodSandbox
- [ ] RemovePodSandbox
- [ ] PodSandboxStatus
- [ ] ListPodSandbox
- [ ] CreateContainer
- [ ] StartContainer
- [ ] StopContainer
- [ ] RemoveContainer
- [ ] ListContainers
- [ ] ContainerStatus
- [ ] UpdateContainerResources
- [ ] ReopenContainerLog
- [ ] ExecSync
- [ ] Exec
- [ ] Attach
- [ ] PortForward
- [ ] ContainerStats
- [ ] ListContainerStats
- [ ] PodSandboxStats
- [ ] ListPodSandboxStats
- [ ] UpdateRuntimeConfig
- [ ] Status
- [ ] CheckpointContainer
- [ ] GetContainerEvents
- [ ] ListMetricDescriptors
- [ ] ListPodSandboxMetrics
- [ ] RuntimeConfig
- [ ] ListImages
- [ ] ImageStatus
- [ ] PullImage
- [ ] RemoveImage
- [ ] ImageFsInfo