This repository has been archived on 2026-06-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
agent-builder/deploy/20-deployment.yaml
2026-06-04 10:31:43 -03:00

75 lines
2.6 KiB
YAML

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: agent-builder
namespace: agents
annotations:
argocd.argoproj.io/sync-options: ServerSideApply=true
labels:
app: agent-builder
a2a/managed-by: control-plane
a2a/platform-agent: "true"
spec:
template:
metadata:
labels:
app: agent-builder
a2a/platform-agent: "true"
annotations:
autoscaling.knative.dev/min-scale: "1"
autoscaling.knative.dev/max-scale: "2"
autoscaling.knative.dev/target: "10"
spec:
enableServiceLinks: false
containerConcurrency: 10
timeoutSeconds: 1800
responseStartTimeoutSeconds: 1800
containers:
- name: agent
image: registry.a2acloud.io/agents/agent-builder:8ccd5d0283b90fb2705251071b8d7d44a703981c
imagePullPolicy: Always
ports:
- containerPort: 8000
name: http1
protocol: TCP
env:
- name: A2A_AGENT_IMAGE
value: registry.a2acloud.io/agents/agent-builder:8ccd5d0283b90fb2705251071b8d7d44a703981c
- name: A2A_RENDER_IMAGE
value: registry.a2acloud.io/agents/agent-builder:8ccd5d0283b90fb2705251071b8d7d44a703981c
- name: SANDBOX_URL
value: http://sandbox.sandbox.svc.cluster.local:8000
- name: A2A_SANDBOX_URL
value: http://sandbox.sandbox.svc.cluster.local:8000
- name: SANDBOX_TIMEOUT_S
value: "1200"
- name: A2A_SANDBOX_TIMEOUT_S
value: "1200"
- name: DEPLOY_WAIT_TIMEOUT_S
value: "900"
- name: A2A_GRANT_VERIFYING_KEY
valueFrom:
secretKeyRef: {name: platform-secrets, key: grant_verifying_key}
- name: A2A_RECEIPT_SIGNING_KEY
valueFrom:
secretKeyRef: {name: platform-secrets, key: receipt_signing_key}
- name: A2A_REPLAY_SIGNING_KEY
valueFrom:
secretKeyRef: {name: platform-secrets, key: replay_signing_key}
- name: A2A_CP_URL
value: http://control-plane.control-plane.svc.cluster.local
readinessProbe:
httpGet: {path: /healthz, port: 8000}
initialDelaySeconds: 8
periodSeconds: 5
failureThreshold: 6
successThreshold: 1
timeoutSeconds: 3
livenessProbe:
httpGet: {path: /healthz, port: 8000}
initialDelaySeconds: 25
periodSeconds: 15
resources:
requests: {cpu: 200m, memory: 512Mi}
limits: {cpu: "1", memory: 1Gi}