Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 1.13 KB

File metadata and controls

64 lines (47 loc) · 1.13 KB

Kubernetes Development Setup

Run Unkey services locally using Kubernetes instead of Docker Compose.

Prerequisites

  • Docker Desktop with Kubernetes enabled OR OrbStack with Kubernetes enabled
  • kubectl

Install pinned project tooling and dependencies:

./dev/install-mise
mise install --yes --locked
mise run install

If GitHub rate-limits attestation checks, retry with GITHUB_TOKEN set:

GITHUB_TOKEN=... mise install --yes --locked

Quick Start

Start with hot reloading:

mise run dev

Individual Services

tilt up -f ./dev/Tiltfile -- --services=mysql --services=clickhouse
tilt up -f ./dev/Tiltfile -- --services=api --services=gw --services=ctrl
tilt up -f ./dev/Tiltfile -- --services=all

Management

# Stop everything
mise run down

# Reset environment
mise run down

# View services
kubectl get pods -n unkey
kubectl get services -n unkey

Tilt (Optional)

Start specific services:

tilt up -- --services=mysql --services=clickhouse
tilt up -- --services=api --services=gw --services=ctrl
tilt up -- --services=all

Stop Tilt:

mise run down