75 lines
2.3 KiB
YAML
75 lines
2.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: gumbo-worker
|
|
namespace: ai-agents-gumbo
|
|
labels:
|
|
app.kubernetes.io/name: gumbo-worker
|
|
agentic-os.io/agent: gumbo
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: gumbo-worker
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: gumbo-worker
|
|
agentic-os.io/agent: gumbo
|
|
spec:
|
|
serviceAccountName: default
|
|
initContainers:
|
|
- name: git-clone
|
|
image: alpine/git
|
|
command:
|
|
- "sh"
|
|
- "-c"
|
|
- "git clone http://192.168.8.248:3000/deepkoluguri/agentic-os.git /workspace && cp -r /workspace/agents/gumbo/* /app/"
|
|
volumeMounts:
|
|
- name: app-code
|
|
mountPath: /app
|
|
containers:
|
|
- name: gumbo-worker
|
|
image: python:3.11-slim
|
|
imagePullPolicy: Always
|
|
command: ["sh", "-c", "pip install -r /app/requirements.txt && cd /app && python -m gumbo.temporal.worker"]
|
|
volumeMounts:
|
|
- name: app-code
|
|
mountPath: /app
|
|
env:
|
|
- name: TEMPORAL_ADDRESS
|
|
value: "temporal-frontend.ai-core.svc.cluster.local:7233"
|
|
- name: TEMPORAL_NAMESPACE
|
|
value: "default"
|
|
- name: GUMBO_TASK_QUEUE
|
|
value: "gumbo"
|
|
- name: MCP_FS_SSE_URL
|
|
value: "http://mcp-filesystem.tools-mcp.svc.cluster.local:8080/sse"
|
|
- name: LITELLM_BASE_URL
|
|
value: "http://litellm.ai-core.svc.cluster.local:4000/v1"
|
|
- name: LITELLM_API_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: gumbo-litellm
|
|
key: api_key
|
|
- name: LANGGRAPH_CHECKPOINT_URI
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: gumbo-checkpoint-db
|
|
key: uri
|
|
- name: GUMBO_RESULTS_DSN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: gumbo-results-db
|
|
key: dsn
|
|
resources:
|
|
requests:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: "2"
|
|
memory: 2Gi
|
|
volumes:
|
|
- name: app-code
|
|
emptyDir: {}
|