mirror of
https://github.com/hanzoai/agents.git
synced 2026-10-30 18:48:36 +00:00
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]>
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: hanzo-agents-control-plane
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: control-plane
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: control-plane
|
|
spec:
|
|
containers:
|
|
- name: control-plane
|
|
image: hanzo-agents/control-plane:latest
|
|
args: ["server", "--open=false"]
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
- name: grpc
|
|
containerPort: 8180
|
|
env:
|
|
- name: HANZO_AGENTS_PORT
|
|
value: "8080"
|
|
- name: HANZO_AGENTS_HOME
|
|
value: "/data"
|
|
- name: HANZO_AGENTS_CONFIG_FILE
|
|
value: "/dev/null"
|
|
- name: HANZO_AGENTS_STORAGE_MODE
|
|
value: "local"
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /v1/health
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /v1/health
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
timeoutSeconds: 5
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: hanzo-agents-control-plane-data
|