INIT(api): add FastAPI application

- Initialize FastAPI project structure
- Add basic API configuration
This commit is contained in:
2025-12-01 14:34:20 +09:00
commit 615fe6e574
19 changed files with 1418 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: joossam
namespace: argocd
annotations:
argocd-image-updater.argoproj.io/image-list: joossam=ghcr.io/mayne0213/joossam
argocd-image-updater.argoproj.io/joossam.update-strategy: latest
argocd-image-updater.argoproj.io/write-back-method: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://github.com/Mayne0213/joossam.git
targetRevision: main
path: deploy/k8s/overlays/prod
destination:
server: https://kubernetes.default.svc
namespace: joossam
syncPolicy:
automated:
prune: true # 매니페스트에서 제거된 리소스 자동 삭제
selfHeal: true # 클러스터에서 수동 변경 시 자동 복구
allowEmpty: false
syncOptions:
- CreateNamespace=true # namespace가 없으면 자동 생성
- PrunePropagationPolicy=foreground
- PruneLast=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
revisionHistoryLimit: 10