LFS on Kubernetes
Large File Support (LFS) uses the claim-check pattern: blobs land in S3 and Kafka
carries a pointer. The operator deploys an LFS proxy when you enable
spec.lfsProxy on your KafscaleCluster.
Standalone Helm lfsProxy.* values were removed in v1.6. Configure LFS on the
cluster CRD, not via chart values.
Prerequisites
- Kubernetes 1.26+
- Helm 3.12+
- S3-compatible storage (AWS S3 or MinIO)
- KafScale operator installed
Installation
- Install the Helm chart (operator + console):
helm upgrade --install kafscale deploy/helm/kafscale \
-n kafscale --create-namespace
- Apply a
KafscaleClusterwith LFS enabled:
apiVersion: kafscale.io/v1alpha1
kind: KafscaleCluster
metadata:
name: kafscale
namespace: kafscale
spec:
lfsProxy:
enabled: true
http:
enabled: true
port: 8080
s3:
bucket: my-bucket
region: us-east-1
credentialsSecretRef: s3-credentials
s3:
bucket: kafscale
region: us-east-1
credentialsSecretRef: kafscale-s3-credentials
spec.lfsProxy.s3.bucket and region are required. The bucket name
kafscale-lfs is permanently blocklisted at startup. Use your own name.
Console LFS dashboard (optional)
The operator-managed LFS proxy is configured only on spec.lfsProxy. The
console can also show an LFS dashboard when console.lfs.enabled is true.
Set the tracker topic, broker list, and S3 location in your values file. Put
S3 credentials in a mode-600 values file; do not pass them on the command line
with --set.
console:
lfs:
enabled: true
kafkaBrokers:
- demo-broker.kafscale.svc.cluster.local:9092
trackerTopic: "__lfs_ops_state"
s3:
bucket: my-lfs-bucket
region: us-east-1
See Installing with Helm for the chart install itself.
Core CRD settings
spec:
lfsProxy:
enabled: true
replicas: 1
http:
enabled: true
port: 8080
apiKeySecretRef: lfs-api-key
s3:
bucket: my-bucket
region: us-east-1
forcePathStyle: true # Required for MinIO
credentialsSecretRef: s3-credentials
service:
type: ClusterIP
port: 9092
metrics:
enabled: true
port: 9095
HTTP API
| Endpoint | Method | Description |
|---|---|---|
/lfs/produce |
POST | Upload blob to S3, produce pointer to Kafka |
/lfs/download |
POST | Get presigned URL or stream blob from S3 |
/readyz |
GET | Readiness probe |
/livez |
GET | Liveness probe |
OpenAPI spec: api/lfs-proxy/openapi.yaml
Monitoring
When spec.lfsProxy.metrics.enabled is true, the operator exposes a metrics
Service on the configured port.
| Metric | Type | Description |
|---|---|---|
lfs_uploads_total |
Counter | Total upload operations |
lfs_downloads_total |
Counter | Total download operations |
lfs_upload_bytes_total |
Counter | Total bytes uploaded |
lfs_upload_duration_seconds |
Histogram | Upload latency |
lfs_s3_operations_total |
Counter | S3 operations by type |
lfs_s3_errors_total |
Counter | S3 operation failures |
Local development with Docker Compose
For local development without Kubernetes:
cd deploy/docker-compose
docker compose up -d
This starts MinIO, a KafScale broker, and the LFS proxy with pre-configured defaults.