Infrastructure Documentation¶
This directory contains operational documentation for the CAMARADES infrastructure, managed via Terraform.
Documentation Philosophy¶
"Documentation lives where the action happens."
This repo contains documentation for infrastructure operations - tasks that involve editing Terraform configurations in the camarades-infrastructure repository.
What's Documented Here¶
Infrastructure Operations¶
- Terraform Usage: How to work with Terraform state, plan, apply
- Cluster Configuration: GKE cluster settings and design rationale
- Disaster Recovery: Procedures for recovering from infrastructure failures
- Cost Optimization: Infrastructure cost management strategies
NOT Documented Here¶
- Application Code: See syrf/src/services/
- System Architecture: See syrf/docs/architecture/
- Architecture Decisions: See syrf/docs/decisions/
- Deployment Operations: See cluster-gitops/docs/
Documentation Index¶
Guides¶
- Terraform Guide - How to use Terraform for infrastructure changes
- Cluster Configuration - GKE cluster settings reference
- Cluster Setup Guide - Complete GKE cluster provisioning guide
- Resource Optimization - Right-sizing based on GKE analysis
Procedures (Planned)¶
- Cost Optimization - Managing infrastructure costs (TODO)
- Disaster Recovery - Cluster recovery procedures (TODO)
- Troubleshooting - Common infrastructure issues (TODO)
Related Documentation¶
Multi-Repository Documentation Strategy¶
The SyRF platform spans three repositories:
| Repository | Purpose | Documentation |
|---|---|---|
| syrf | Application code | syrf/docs/ |
| cluster-gitops | Deployment config | cluster-gitops/docs/ |
| camarades-infrastructure | Infrastructure IaC | camarades-infrastructure/docs/ ← You are here |
Quick Links¶
Architecture & Decisions: - ADR-003: Cluster Architecture - System Architecture
Deployment Operations: - How to Deploy Services - Promotion Workflow
Service Documentation: - API Service - Web Service
Documentation Decision Flow¶
Question: "Where do I document infrastructure changes?"
Is it about...
├─ Terraform usage, state management, infrastructure procedures?
│ └─ camarades-infrastructure/docs/ (this repo)
├─ GKE cluster design decisions or architecture?
│ └─ syrf/docs/decisions/ (ADRs in main repo)
├─ How to deploy applications or update image tags?
│ └─ cluster-gitops/docs/ (deployment operations)
└─ Application code or service-specific configuration?
└─ syrf/src/services/{service}/README.md
Contributing¶
To add or update infrastructure documentation:
- Create or update markdown files in this directory
- Follow the naming convention:
kebab-case.md - Include clear headings and examples
- Link to related documentation in other repos using full GitHub URLs
- Update this README's index when adding new docs
Unified Documentation Site¶
All documentation from across the three repositories is aggregated into a single MkDocs site published at docs.syrf.org.uk. Changes to this directory automatically appear in the "Infrastructure" section of that site.