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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -16,5 +16,5 @@ commonLabels:
|
||||
# 이미지 태그 설정 (ArgoCD Image Updater가 자동으로 업데이트)
|
||||
images:
|
||||
- name: gitea0213.kro.kr/bluemayne/mas
|
||||
newTag: latest
|
||||
newTag: main-sha-349c71880a580d01c69d516e13ee1c4d4c02cd08
|
||||
|
||||
|
||||
Reference in New Issue
Block a user