Files
zeekayandHanzo Dev ff7d100496 Everything that calls the control plane calls /v1
The server mounts /v1, /v1/ui and /v2/ui. The UI and its dev proxy, the helm
and kubernetes health probes, functional tests, project templates, examples
and scripts still called /api/v1, so the probes failed and the UI's requests
missed.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-11 04:10:35 -07:00

52 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: hanzo-agents-demo-agent
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: demo-agent
template:
metadata:
labels:
app.kubernetes.io/component: demo-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/v1/health" >/dev/null;
do echo "waiting for control plane"; sleep 2; done
containers:
- name: demo-agent
image: hanzo-agents-demo-go-agent:local
args: ["serve"]
ports:
- name: http
containerPort: 8001
env:
- name: HANZO_AGENTS_URL
value: http://hanzo-agents-control-plane:8080
- name: AGENT_NODE_ID
value: demo-go-agent
- name: AGENT_LISTEN_ADDR
value: :8001
- name: AGENT_PUBLIC_URL
value: http://hanzo-agents-demo-agent:8001
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 2
periodSeconds: 5