Repository navigation
vBilling v0.2: durable ledger, Stripe and Metronome, every tenancy model - #1
Merged
Merged
Conversation
vBilling v0.2 core:
- Hash-chained ledger with atomic window commits, per-destination cursors,
dead letters with replay, and ingest deduplication.
- Delivery to Stripe Billing Meters, Metronome, Lago and a signed
CloudEvents webhook, with deterministic event IDs.
- Metering for shared nodes, dedicated nodes, and tenant clusters with
their own nodes (vCluster Private Nodes, Auto Nodes, Standalone), read
through a read-only tenant kubeconfig. MIG, time-slicing, GKE partitions
and DRA; deletion watches; fair metering of downtime.
- Prometheus: DCGM utilization including MIG instances, PromQL-defined
billable metrics, auth headers, and a vCluster Platform preset.
- Reconciliation, billing-state enforcement, ingest API and dashboard.
Fixes from a run on GKE with L4 and A100 GPUs and a Stripe sandbox:
- Find Stripe customers by listing them where search is unavailable.
- Count physical GPUs once under MIG and fall back to engine activity.
- Record GPUs that are installed but not allocatable as downtime.
- Add the {{window_seconds}} template and trim secrets read from files.
The chart runs vBilling as a StatefulSet with a ledger volume, a Service, RBAC that only grows with the features enabled, the suspension admission policy, a ServiceMonitor, and Secrets or existingSecret for every key. The Lago demo now generates its RSA signing key at runtime.
examples/gke-gpu goes from an empty project to Stripe invoices: a time-sliced L4 tenant cluster, an A100 joined as a private node with the GPU Operator and MIG, DCGM through Prometheus, and vBilling in Stripe test mode. The docs site gets the example page, troubleshooting for private nodes and DCGM, and quick starts that keep keys in Secrets.
CI runs vet, race tests and a Helm lint on every pull request. Publishing a release builds the linux/amd64 and linux/arm64 image the chart defaults to and attaches the packaged chart.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vBilling v0.2 turns the v0.1 Lago exporter into a metering pipe for AI Clouds on vCluster:
examples/gke-gpu, docs pageexample-gke.html), troubleshooting for private nodes and DCGM, quick starts that keep keys in Secrets.ghcr.io/vclusterlabs-experiments/vbillingfor amd64 and arm64.Validation
go vet ./...,go test -race ./...(15 packages),helm lint.scripts/e2e-kind.sh): three tenant clusters, stripe-mock, webhook feed, Lago, enforcement loop.🤖 Generated with Claude Code