feat: add legacy-api service
실험·앱 계층 설계서 3.2의 legacy-api(VM 계층). /healthz(프로세스 생존),
/v1/price/{item}(db-primary app.price 조회, DB 불가 시 503), /metrics(Prometheus).
Go 1.27.1, pgx v5.11.0, client_golang v1.24.1. 이미지는 Cloud Build로 Artifact Registry에
올린다(MIG 인스턴스가 VM SA로 pull).
This commit is contained in:
commit
7186ef0c49
5 files changed
+221
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# selfheal-lab-apps
|
||||
|
||||
Application sources for the self-healing verification lab (VM + container mixed environment).
|
||||
Infrastructure: `seon-labs/selfheal-lab-terraform`. Runtime configuration (compose, manifests):
|
||||
`selfheal-lab/selfheal-lab-gitops`. This repository is public and contains no secrets.
|
||||
|
||||
| Directory | Runs on | Image |
|
||||
|---|---|---|
|
||||
| `legacy-api/` | GCP MIG instances (docker compose) | Artifact Registry `asia-northeast1-docker.pkg.dev/cms-d-414903/selfheal/legacy-api:<git sha>` |
|
||||
| `demo-app/` | AWS Kubernetes (Argo CD) | ECR `selfheal/demo-app` (added in WP-14) |
|
||||
|
||||
Build (Cloud Build, from the repository root):
|
||||
|
||||
```
|
||||
gcloud builds submit legacy-api --project cms-d-414903 --tag asia-northeast1-docker.pkg.dev/cms-d-414903/selfheal/legacy-api:$(git rev-parse --short HEAD)
|
||||
```
|
||||
Reference in new issue
Block a user