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
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# 애플리케이션 코드 복사
|
# 애플리케이션 코드 복사
|
||||||
COPY . .
|
COPY *.py .
|
||||||
|
|
||||||
|
# Chainlit 설정 디렉토리 미리 생성 (권한 문제 해결)
|
||||||
|
RUN mkdir -p /root/.chainlit
|
||||||
|
|
||||||
# Chainlit 포트
|
# Chainlit 포트
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: mas
|
app: mas
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: mas
|
app: mas
|
||||||
@@ -46,21 +46,9 @@ spec:
|
|||||||
value: "redis://redis:6379/0"
|
value: "redis://redis:6379/0"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "512Mi"
|
memory: "256Mi"
|
||||||
cpu: "500m"
|
cpu: "100m"
|
||||||
limits:
|
limits:
|
||||||
memory: "2Gi"
|
memory: "1Gi"
|
||||||
cpu: "2000m"
|
cpu: "1000m"
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /health
|
|
||||||
port: 8000
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
periodSeconds: 10
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /health
|
|
||||||
port: 8000
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 5
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,5 +16,5 @@ commonLabels:
|
|||||||
# 이미지 태그 설정 (ArgoCD Image Updater가 자동으로 업데이트)
|
# 이미지 태그 설정 (ArgoCD Image Updater가 자동으로 업데이트)
|
||||||
images:
|
images:
|
||||||
- name: gitea0213.kro.kr/bluemayne/mas
|
- name: gitea0213.kro.kr/bluemayne/mas
|
||||||
newTag: latest
|
newTag: main-sha-349c71880a580d01c69d516e13ee1c4d4c02cd08
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ langchain-anthropic==0.3.0
|
|||||||
langchain-openai==0.2.14
|
langchain-openai==0.2.14
|
||||||
langchain-google-genai==2.0.8
|
langchain-google-genai==2.0.8
|
||||||
|
|
||||||
# Chainlit (UI) - installs compatible fastapi and uvicorn
|
# Chainlit (UI)
|
||||||
chainlit==1.3.1
|
chainlit==1.3.1
|
||||||
|
|
||||||
# Pydantic (chainlit compatible)
|
# Pydantic (chainlit compatible)
|
||||||
|
|||||||
Reference in New Issue
Block a user