Service Templates and Scaffolding
On this page
Template Must-Haves
- Health probes + graceful shutdown
- Resource requests/limits
- Logging + metrics + tracing hooks
- CI pipeline with security gates
- Runbook skeleton
Template Versioning Strategy
- Embed template version in repo
- Provide automated upgrade tool/script
- Deprecate old versions with deadlines
Example: Template Metadata File
# platform.template.yaml name: standard-service version: 3.2.0 includes: - ci: github-actions - deploy: helm - obs: otel policies: - require_requests_limits: true
Failure Modes
- Template drift → run periodic “template compliance” checks in CI.
- Too many templates → one standard template + small extensions.