Conversation
- Add checkDbHealth decorator to dbPlugin (routes don't access pg pool directly) - Add /ready route using app.checkDbHealth() — returns 503 when DB is unavailable - /health remains liveness-only (process alive, DB-agnostic) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- PostToolUse hook: auto-logs bash commands + output to .claude/session-log.md - doc-writer skill: reads session-log.md and writes troubleshooting docs - bypassPermissions mode in settings.json - session-log.md added to .gitignore Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Move deployment.yaml into api/ directory - Add api/secret.yaml (api-secret structure) - Add db/statefulset.yaml with liveness/readiness probes and PVC - Add db/service.yaml (ClusterIP, name: db) - Add db/secret.yaml (postgres-secret structure) - Add wait-for-postgres initContainer and DATABASE_URL env to api Deployment - Update kustomization.yaml resource paths Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- replicas: 3 for api - imagePullPolicy: Never patch (minikube local image) - environment: local label - migrate-job.yaml for DB migration (local only) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Move service.yaml and ingress.yaml into api/ directory - Add api Service (ClusterIP port 80→3000) - Add Ingress (nginx, routes / to api service) - Register itemsRoute with prefix /api in app.ts - Update test URLs /items → /api/items - Update README endpoint table and curl examples Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace app: <name> with app.kubernetes.io/name, component, part-of - api: component=backend, db: component=database - part-of=devopsim on all resources Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Summary
변경 내용
infra/k8s/base/api/— Deployment, Service, Ingress, Secretinfra/k8s/base/db/— StatefulSet(PostgreSQL), Service, Secretinfra/k8s/overlays/local/— replicas:3, imagePullPolicy:Never, migrate Job/readyendpoint 추가 (DB 연결 상태 확인)/apiprefix 추가 (items routes)app.kubernetes.io/*공식 레이블 적용docs/minikube.md트러블슈팅 기록Test plan
kubectl apply -k infra/k8s/overlays/local으로 전체 스택 기동minikube tunnel후curl http://127.0.0.1/health응답 확인curl http://127.0.0.1/api/items응답 확인🤖 Generated with Claude Code