Reference
bytstack.yaml reference
Schema reference for Blueprint apiVersion bytstack.dev/v1alpha1.
bytstack.yaml reference
Canonical file: repository-root bytstack.yaml or bytstack.yml (max 256 KiB).
For a full worked example, see the Blueprint guide.
Skeleton
apiVersion: bytstack.dev/v1alpha1
kind: Blueprint
metadata:
name: my-stack
spec:
defaults:
runtime: nodejs
nodeVersion: "22"
branch: main
autoDeploy: true
services: []
databases: []
redis: []
buckets: []
envGroups: []
environments: []Service fields
| Field | Notes |
|---|---|
logicalKey | Required; ^[a-z][a-z0-9-]{0,63}$ |
type | web | static | worker | cron |
platformHostname | Optional exact DNS label under the platform zone (e.g. templates). Omit → claim-or-suffix from name/env. When set, apply claims exactly (fails if taken/reserved/invalid). Changing it renames with a 30-day redirect. |
build.strategy | dockerfile | nixless |
build.dockerfilePath | Path when strategy is dockerfile (defaults to Dockerfile) |
buildMachineTier | standard (8 GB) | performance (16 GB). Build machine for image builds, applied from the next deploy. performance bills at 4× the build-minute rate and needs the workspace and service on Starter or Pro. Omit to keep the current setting (standard for a new service). Not allowed on static services, which always build on Standard: apply rejects performance for them. |
nativeDependencies | Optional true or false. When true, generated Node image builds allow native npm install scripts and use a heavier build stage; omitted or false keeps today’s default. Not allowed on static services or when build.dockerfilePath is set (BYO Dockerfile). Applies from the next deploy. See Native dependencies. |
env.keys / env.fromGroups | Names only — no secret values |
Overlays
Optional per-environment file: bytstack.<slug>.yaml (for example bytstack.staging.yaml). It merges onto the base Blueprint by logicalKey for services, databases, Redis, and buckets. Do not commit bytstack.override.yaml for auto-apply — keep local-only overrides out of git if you use that filename.
Related
- Authoring guide: Blueprint