Skip to content

πŸš€ Cluster CI Cache v0.1.0 β€” First MVP Release

Latest

Choose a tag to compare

@rileyseaburg rileyseaburg released this 30 Jun 21:23

πŸš€ Cluster CI Cache v0.1.0

In-cluster, cache-agnostic CI build cache for Kubernetes.

First production-oriented MVP. Rust workspace, Kubernetes deployment, and end-to-end cache cycle verified on a live 7-node cluster.


✨ What's Included

Binaries

  • ci-cache β€” CLI for restore/save/docker commands (6.3 MB)
  • ci-cache-server β€” HTTP API server with manifest/blob management (7.2 MB)
  • ci-cache-agent β€” Node-local DaemonSet agent (2.8 MB)

Cache Types

  • πŸ¦€ Rust/Cargo β€” ~/.cargo/registry, ~/.cargo/git, target/
  • πŸ“¦ npm β€” ~/.npm
  • πŸ“¦ pnpm β€” pnpm store
  • 🧢 yarn β€” yarn cache
  • 🐳 Docker/BuildKit β€” registry-type cache helpers

Backends

  • πŸ’Ύ Filesystem/PVC β€” local dev and simple clusters
  • ☁️ S3/MinIO β€” production with shared storage (SigV4 signed)

Security Features

  • βœ… Content-addressed storage with sha256 digests
  • βœ… Path traversal protection (custom CIC1 archive format)
  • βœ… Decompression bomb prevention
  • βœ… Digest verification on upload AND restore
  • βœ… Namespace isolation
  • βœ… Atomic manifest publishing
  • βœ… Save sessions preventing partial manifests

Kubernetes

  • βœ… Deployment (2x server replicas)
  • βœ… DaemonSet (agent on every node)
  • βœ… Service, ServiceAccount, RBAC
  • βœ… ConfigMap, Secret, PVC, NetworkPolicy
  • βœ… Helm chart
  • βœ… Health/readiness probes
  • βœ… Prometheus metrics

πŸ“¦ Install

Quick install (CLI + server + agent)

curl -fsSL https://github.com/rileyseaburg/cluster-ci-cache/releases/download/v0.1.0/install.sh | bash

Docker image

docker pull registry.quantum-forge.net/cluster-ci-cache/ci-cache:v0.1.0

Build from source

git clone https://github.com/rileyseaburg/cluster-ci-cache.git
cd cluster-ci-cache
cargo build --release

πŸš€ Deploy to Kubernetes

git clone https://github.com/rileyseaburg/cluster-ci-cache.git
cd cluster-ci-cache
kubectl apply -k deploy/k8s/

πŸ“Š Verified

  • 13 tests passing (11 unit + 2 integration)
  • Live on cluster: 2x server replicas + 6x agent DaemonSet pods across 7 nodes
  • E2E cycle verified: cache miss β†’ save β†’ cache hit β†’ file restore βœ…
  • Metrics confirmed: ci_cache_hits_total, ci_cache_bytes_uploaded_total, etc.

πŸ“‹ Stats

Metric Value
Rust source 3,424 lines across 6 crates
Docker image 101 MB (linux/amd64)
Test suite 13 tests
Server replicas 2
Agent pods 6 (DaemonSet)

Full docs: README.md