mirror of
https://github.com/hanzoai/agents.git
synced 2026-10-30 18:48:36 +00:00
Transforms hanzoai/agents from a marketplace config repo into a full agent orchestration platform by merging the AgentField infrastructure: - Go control plane (K8s-like agent orchestration, service mesh, DAG workflows) - Python SDK (FastAPI-based agent framework, LiteLLM, memory, DID/VC) - TypeScript SDK (@hanzo/agents - Vercel AI SDK, MCP, workflows) - Go SDK (idiomatic agent builder + client) - React 19 embedded dashboard (XyFlow DAGs, Recharts, Radix UI) - Docker/K8s/Helm deployment configs - Examples: hello world, deep research, RAG, simulation, benchmarks - Functional test suite across Python/Go/TypeScript All references rebranded: AgentField → Hanzo Agents - Module: github.com/hanzoai/agents/control-plane - Python: hanzo_agents - TypeScript: @hanzo/agents - Go: github.com/hanzoai/agents/sdk/go - Env vars: HANZO_AGENTS_* - Config: hanzo-agents.yaml Previous marketplace configs moved to config/ directory.
79 lines
2.7 KiB
YAML
79 lines
2.7 KiB
YAML
{{- if .Values.postgres.enabled -}}
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: {{ include "hanzo-agents.postgres.fullname" . }}
|
|
labels:
|
|
{{- include "hanzo-agents.labels" . | nindent 4 }}
|
|
spec:
|
|
serviceName: {{ include "hanzo-agents.postgres.fullname" . }}
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
{{- include "hanzo-agents.selectorLabels" . | nindent 6 }}
|
|
app.kubernetes.io/component: postgres
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{- include "hanzo-agents.selectorLabels" . | nindent 8 }}
|
|
app.kubernetes.io/component: postgres
|
|
spec:
|
|
{{- if not .Values.postgres.persistence.enabled }}
|
|
volumes:
|
|
- name: data
|
|
emptyDir: {}
|
|
{{- end }}
|
|
containers:
|
|
- name: postgres
|
|
image: "{{ .Values.postgres.image.repository }}:{{ .Values.postgres.image.tag }}"
|
|
imagePullPolicy: {{ .Values.postgres.image.pullPolicy }}
|
|
ports:
|
|
- name: postgres
|
|
containerPort: 5432
|
|
env:
|
|
- name: POSTGRES_USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ include "hanzo-agents.postgres.secretName" . }}
|
|
key: {{ .Values.postgres.auth.existingSecretUsernameKey }}
|
|
- name: POSTGRES_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ include "hanzo-agents.postgres.secretName" . }}
|
|
key: {{ .Values.postgres.auth.existingSecretPasswordKey }}
|
|
- name: POSTGRES_DB
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ include "hanzo-agents.postgres.secretName" . }}
|
|
key: {{ .Values.postgres.auth.existingSecretDatabaseKey }}
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /var/lib/postgresql/data
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: postgres
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: postgres
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
{{- if .Values.postgres.persistence.enabled }}
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: data
|
|
labels:
|
|
{{- include "hanzo-agents.labels" . | nindent 10 }}
|
|
spec:
|
|
accessModes:
|
|
{{- toYaml .Values.postgres.persistence.accessModes | nindent 10 }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.postgres.persistence.size | quote }}
|
|
{{- if .Values.postgres.persistence.storageClass }}
|
|
storageClassName: {{ .Values.postgres.persistence.storageClass | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|