Skip to content

clearwater-analytics/tilt-demo

Repository files navigation

Tilt + Helm Demo (Fictional)

This is a public, fictional, Tilt-first demo that showcases fast local iteration while keeping Helm in the deploy path. It is intentionally generic and safe to publish.

What’s Included

  • Quarkus web service with /dummy and /files endpoints
  • PostgreSQL running in-cluster
  • LocalStack (S3) running in-cluster for S3-compatible object storage
  • Helm chart for the app
  • Tiltfile that wires everything together + DB seeding + S3 bucket init hook

Quickstart

Prereqs

  • Docker
  • Kubernetes local cluster (kind or k3d)
  • Tilt
  • kubectl
  • Helm

Run

# From the repo root
tilt up

Then open:

  • http://localhost:8080/dummy — Postgres-backed message
  • http://localhost:8080/files — S3 file listing (empty initially)

Upload a file to S3:

curl -X POST http://localhost:8080/files/hello.txt \
  -H "Content-Type: application/octet-stream" \
  --data-binary "Hello from S3!"
curl http://localhost:8080/files

How It Works

  1. Tilt builds the app image (web).
  2. Tilt applies tilt/postgres.yaml to run Postgres.
  3. Tilt applies tilt/localstack.yaml to run LocalStack (S3).
  4. Tilt installs the Helm chart in helm/demo-web.
  5. Tilt seeds the database by running tilt/seed-db.sh.
  6. LocalStack automatically creates the S3 bucket via init hooks.
  7. The app connects to Postgres and S3 (LocalStack) and serves /dummy and /files.

Project Layout

src/                Quarkus app source
pom.xml             Maven config
helm/demo-web/      Helm chart
tilt/               Postgres + LocalStack manifests, DB seed script + SQL, LocalStack init hook
Tiltfile            Tilt entrypoint

Fictional Demo Notice

This repository is not based on any internal system. All names, data, and configuration values are placeholders.

About

This is a public, fictional, Tilt-first demo that showcases fast local iteration while keeping Helm in the deploy path. It is intentionally generic and safe to publish.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors