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,51 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: joossam-app
labels:
app: joossam-app
spec:
replicas: 1
selector:
matchLabels:
app: joossam-app
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
template:
metadata:
labels:
app: joossam-app
spec:
containers:
- name: joossam-app
image: ghcr.io/mayne0213/joossam:latest
imagePullPolicy: Always
ports:
- containerPort: 8000
protocol: TCP
env:
- name: ENV
value: production
resources:
requests:
memory: "150Mi"
cpu: "100m"
limits:
memory: "300Mi"
cpu: "300m"
livenessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 5
periodSeconds: 5
restartPolicy: Always