Run OpenTelemetry, Datadog and proxy sidecars on a PaaS without Kubernetes
Declare built-in `opentelemetry`, `sentry` or `datadog-dogstatsd` presets or custom `@sha256` sidecars in `gregale.yaml` with loopback discovery, startup probes, Unix socket directories and per-companion `env_secrets` allowlists.
Run an OpenTelemetry collector, Sentry relay, Datadog DogStatsD agent, or local reverse proxy inside your application's Firecracker microVM without running Kubernetes or ECS. With companions: in gregale.yaml, Gregale boots up to four long-running helpers (plus one setup helper) in the same loopback network namespace as your app, with startup probes, shared Unix sockets, and scoped secret delivery.
Why sidecars usually force teams onto Kubernetes
Most developer-focused PaaS platforms run a single container per service, with no way to attach a local OpenTelemetry collector, Datadog DogStatsD agent, or TLS proxy over 127.0.0.1. Teams that need sidecar collectors or local ingress proxies often migrate to Kubernetes Pods or AWS ECS task definitions just to colocate two containers.
Built-in presets and custom digest-pinned companions
Declare managed presets (opentelemetry, sentry, datadog-dogstatsd) or custom immutable @sha256:... images directly under companions: in gregale.yaml (if a preset is not yet enabled on your account, companion_preset_unavailable falls back cleanly to a custom digest-pinned image):
companions:
- preset: opentelemetry
env:
OTEL_EXPORTER_OTLP_ENDPOINT: https://telemetry.example.com
- name: database-proxy
image: registry.example.com/database-proxy@sha256:<64-hex-digest>
port: 5432
ram_mb: 128
env_secrets:
DATABASE_URL: secret:DATABASE_URL
startup_probe:
tcp_socket:
port: 5432
depends_on:
- name: main
condition: started
Each companion gets isolated image storage, CPU, memory, and scratch controls while sharing loopback (FAAS_WORKLOAD_DATABASE_PROXY_ADDR=127.0.0.1:5432, FAAS_WORKLOAD_MAIN_ADDR) and an in-memory shared folder /tmp/gregale/companions/<name> (FAAS_WORKLOAD_<NAME>_SHARED_DIR) for Unix sockets and transient files.
Ordering, probes, primary_ingress, and least-privilege secrets
- Health-gated startup (
depends_onandmain_depends_on): Declareexec,http_get, ortcp_socketstartup_probe,liveness_probe, andreadiness_probechecks somainor downstream helpers wait forstarted,healthy, orcompleted_successfullybefore accepting requests. - Custom reverse proxy as ingress (
primary_ingress: true): A sidecar proxy can claim the app's public hostname and custom domains. Ifreadiness_probefails, Gregale removes the instance from public routing without killing it—and during traffic-split rollouts, all live deployments must agree on the primary companion and port or routing fails closed. - Explicit
env_secretsper companion: Companions never inherit the main app's secrets automatically. You grant individual secrets explicitly (env_secrets), and long-running sidecars can even opt intocom.gregale.secret-reload-signalindependently.
Security, networking, and resource caveats to know first
- Declared
portopens a companion hostname: Declaringportexposes<app>--<companion>.<apps domain>publicly at the edge alongside injectingFAAS_WORKLOAD_<NAME>_ADDR. For helpers that should stay strictly private, omitportand talk over Unix sockets inFAAS_WORKLOAD_<NAME>_SHARED_DIR, authenticate callers inside the companion, or protect@apphosts with edge rules. - Read-only root filesystem: A companion's root image is read-only; only
/tmpand its shared directory are writable (ephemeral per instance). Point caches and PID files at/tmp. - Limits and isolation: Each deployment supports at most four long-running companions and one one-shot setup helper; stateful database images are rejected; companion
ram_mbadds to billable instance RAM; and companions inside one deployment share that microVM's guest kernel, so mutually untrusted code belongs in separate deployments.
See Application companions, Trace requests, Manage secrets, A microVM for every app, and Gregale pricing.
Questions
- How many sidecars can run alongside my app in one microVM?
Each deployment can declare up to four long-running companions plus one one-shot setup helper under
companions:ingregale.yamlorgregale.toml.- Do companions inherit my main app secrets automatically?
No. Each companion receives only secrets explicitly granted in its own
env_secretsblock and never inherits the main app secret set automatically.- Are companion ports exposed publicly or only on loopback?
Declaring
portbinds loopback discovery (FAAS_WORKLOAD_<NAME>_ADDR) and opens<app>--<companion>.<apps domain>publicly. Omitportto use shared Unix sockets without opening a hostname, or protect@apphosts with edge rules.