mirror of
https://github.com/hanzoai/agent.git
synced 2026-09-11 21:08:51 +00:00
Consolidate all Hanzo agent infrastructure into one repo: - control-plane/: Go control plane server (was agents-new) - sdk/: Go, Python, TypeScript SDKs - deployments/: Docker, Kubernetes, Helm configs - Dockerfile.sdk: Python SDK image (ghcr.io/hanzoai/agent:latest) - CI builds both SDK + control-plane images No more agentfield — everything is hanzoai/agent.
66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: hanzo-agents-demo-python-agent
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: demo-python-agent
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: demo-python-agent
|
|
spec:
|
|
initContainers:
|
|
- name: wait-control-plane
|
|
image: curlimages/curl:8.12.1
|
|
command:
|
|
- sh
|
|
- -c
|
|
- >
|
|
until curl -sf "http://hanzo-agents-control-plane:8080/api/v1/health" >/dev/null;
|
|
do echo "waiting for control plane"; sleep 2; done
|
|
containers:
|
|
- name: demo-python-agent
|
|
image: python:3.11-slim
|
|
command:
|
|
- sh
|
|
- -c
|
|
- >
|
|
python -m pip install --no-cache-dir --upgrade pip &&
|
|
python -m pip install --no-cache-dir hanzo-agents &&
|
|
python /app/main.py
|
|
ports:
|
|
- name: http
|
|
containerPort: 8001
|
|
env:
|
|
- name: HANZO_AGENTS_URL
|
|
value: http://hanzo-agents-control-plane:8080
|
|
- name: AGENT_NODE_ID
|
|
value: demo-python-agent
|
|
- name: PORT
|
|
value: "8001"
|
|
- name: AGENT_CALLBACK_URL
|
|
value: http://hanzo-agents-demo-python-agent:8001
|
|
volumeMounts:
|
|
- name: app
|
|
mountPath: /app
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
volumes:
|
|
- name: app
|
|
configMap:
|
|
name: hanzo-agents-demo-python-agent
|
|
|