infraops

Accepted design for applications

Part of the accepted-design index.

Network policy

Each application NetworkPolicy selects the application’s pods and limits ingress to its ports. Egress stays open until per-app traffic flows are modeled. Before proposing tighter egress, check DNS, ingress, probes, telemetry, and outbound service calls for the affected apps.

Network policy implementation

Secret references

Environment variable values of the form secret:<secretName>/<key> become Kubernetes SecretKeyRefs with Secret name <secretName>-secret and key <key>. Shape validation is deferred to Pulumi and Kubernetes.

Application.secrets lists app-level dependencies on logical secrets and supplies Secret volumes where supported. Each environment variable reference selects its own key. Keep both behaviors aligned with the schema.

Environment variables · Secret volumes · Application schema

Resource profiles

Application.resource falls back to small for unknown values. The profile sets CPU requests and limits to 125m and 250m, memory to 64Mi and 128Mi, and ephemeral storage to 1Gi and 2Gi.

The medium profile requests 250m CPU with a 500m limit. The large profile doubles medium’s CPU and ephemeral storage requests and limits. It requests 1Gi of memory with a 2Gi limit. Einblick uses large for CPU headroom during telemetry ingestion and memory headroom during backup.

Resource profiles · Application schema

Einblick trace exports

Production uses the OpenTelemetry default batch size for Einblick’s own trace exports. Einblick v2.30.0 batches span lookups and writes on ingestion, so production dropped the temporary 64-span export cap.

Production configuration · Einblick trace ingestion change

Einblick telemetry retention

Production retains 72 hours of logs, traces, and metrics by event time to limit the size of the local database and daily snapshots. Browser presets and custom searches are capped at 72 hours. With backups enabled, Einblick expires older rows after a verified snapshot covers them.

Production configuration · Einblick retention requirements

Einblick startup recovery

Production allows 5 minutes per R2 HTTP request and 6 minutes for the full DuckDB snapshot restore. Einblick’s 7-minute 30-second startup probe allowance leaves additional time for migrations and server startup after recovery.

Application startup allowances are capped at eight minutes to fit the default ten-minute Kubernetes and Pulumi rollout deadlines. The configuration guide and startup probe tests use examples independent of the production app list.

Application configuration · Production configuration

ConfigMap sources

App ConfigMaps read <namespace>/<app>.yaml relative to the Pulumi working directory. The root Makefile previews the apps stack with --cwd area/apps. Updates go through the apps release helper, which uses the same directory.

ConfigMap implementation · Root Makefile · Pulumi update dispatcher · Apps release helper

Abgleich review budgets

Production gives Astra code and security reviews longer job budgets than Sol test reviews after both Astra reviews timed out on a large pull request. Abgleich gives inference half the remaining job time. The shared OpenAI HTTP timeout covers the longest inference budget for an individual request.

Production configuration · Abgleich inference design