FIX(config): fix Chainlit config dir

- Create /root/.chainlit directory in Dockerfile to prevent FileExistsError
- Reduce replicas from 2 to 1 to conserve resources
- Lower CPU request from 500m to 100m (insufficient CPU on nodes)
- Lower memory request from 512Mi to 256Mi
- Remove health check probes (Chainlit doesn't have /health endpoint)
This commit is contained in:
2025-12-23 23:38:10 +09:00
parent e124a88bfc
commit 12fd9d52d9
4 changed files with 11 additions and 20 deletions

View File

@@ -19,7 +19,10 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 애플리케이션 코드 복사
COPY . .
COPY *.py .
# Chainlit 설정 디렉토리 미리 생성 (권한 문제 해결)
RUN mkdir -p /root/.chainlit
# Chainlit 포트
EXPOSE 8000

View File

@@ -6,7 +6,7 @@ metadata:
labels:
app: mas
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: mas
@@ -46,21 +46,9 @@ spec:
value: "redis://redis:6379/0"
resources:
requests:
memory: "512Mi"
cpu: "500m"
memory: "256Mi"
cpu: "100m"
limits:
memory: "2Gi"
cpu: "2000m"
livenessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 10
periodSeconds: 5
memory: "1Gi"
cpu: "1000m"

View File

@@ -16,5 +16,5 @@ commonLabels:
# 이미지 태그 설정 (ArgoCD Image Updater가 자동으로 업데이트)
images:
- name: gitea0213.kro.kr/bluemayne/mas
newTag: latest
newTag: main-sha-349c71880a580d01c69d516e13ee1c4d4c02cd08

View File

@@ -5,7 +5,7 @@ langchain-anthropic==0.3.0
langchain-openai==0.2.14
langchain-google-genai==2.0.8
# Chainlit (UI) - installs compatible fastapi and uvicorn
# Chainlit (UI)
chainlit==1.3.1
# Pydantic (chainlit compatible)