44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: curaflow-agent
|
|
labels:
|
|
app.kubernetes.io/name: curaflow-agent
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: curaflow-agent
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: curaflow-agent
|
|
spec:
|
|
containers:
|
|
- name: worker
|
|
image: 192.168.8.250:5000/agents-runtime:latest
|
|
imagePullPolicy: Always
|
|
command: ["python", "-m", "curaflow_agent.worker"]
|
|
env:
|
|
- name: PYTHONPATH
|
|
value: "/app/src"
|
|
- name: PYTHONUNBUFFERED
|
|
value: "1"
|
|
- name: TEMPORAL_URL
|
|
value: "temporal-frontend.ai-core.svc.cluster.local:7233"
|
|
- name: TEMPORAL_NAMESPACE
|
|
value: "default"
|
|
- name: CURAFLOW_TASK_QUEUE
|
|
value: "curaflow-tasks"
|
|
- name: OLLAMA_BASE_URL
|
|
value: "http://ollama.ai-core.svc.cluster.local:11434/v1"
|
|
- name: LLM_MODEL
|
|
value: "qwen2.5:3b"
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|