kb/subsystems/service-lifecycle.md (visibility private wg rozstrzygniecia 6) kb/runbooks/service-operational-recovery.md — Operational Recovery Tresc sekcji nietknieta. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1.6 KiB
1.6 KiB
| okf | type | visibility | status | updated | links | |
|---|---|---|---|---|---|---|
| 0.1 | subsystem | private | active | 2026-05-11 |
|
Service Lifecycle and Recovery
This document defines the lifecycle of a service in the homelab and the procedures for operational recovery.
Service Lifecycle
- Onboarding:
- Create
services/<service>/directory. - Define
docker-compose.yml,service.yaml,README.md,env.example, andhealthcheck.sh. - Register service in
inventory/topology.yamlor relevant host configs.
- Create
- Provisioning:
- Ensure
/opt/homelab/data/<service>exists. - Ensure
/opt/homelab/config/<service>exists and contains required secrets/configs. - Setup environment variables from
env.exampleinto/opt/homelab/config/<service>/.env.
- Ensure
- Deployment:
scripts/deploy/deploy.sh(Starts fresh)scripts/deploy/deploy.sh --resume(Continues after interruption)
- Verification:
- Automatic as part of the
deploy.shpipeline (verifystage). - Manual:
scripts/deploy/deploy.sh --stage verify.
- Automatic as part of the
- Maintenance:
- Periodic updates via
docker compose pull. - Log monitoring via
docker compose logs -f.
- Periodic updates via
- Decommissioning:
docker compose down.- Archive
/opt/homelab/data/<service>if necessary.
Persistent Data Conventions
- Data:
/opt/homelab/data/<service>- Primary persistent state. - Config:
/opt/homelab/config/<service>- Local overrides and secrets. - Backups: Standard backup routines should target
/opt/homelab/data/.