deploy agent-builder as deployment

This commit is contained in:
robert
2026-05-27 23:29:09 -03:00
parent 40ec92cc6b
commit f7a856d839

View File

@@ -1,5 +1,5 @@
apiVersion: serving.knative.dev/v1
kind: Service
apiVersion: apps/v1
kind: Deployment
metadata:
name: agent-builder
namespace: agents
@@ -7,20 +7,24 @@ metadata:
app: agent-builder
a2a/managed-by: control-plane
spec:
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
app: agent-builder
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
progressDeadlineSeconds: 900
template:
metadata:
labels:
app: agent-builder
annotations:
autoscaling.knative.dev/minScale: "0"
autoscaling.knative.dev/maxScale: "1"
autoscaling.knative.dev/metric: concurrency
autoscaling.knative.dev/target: "1"
spec:
containerConcurrency: 1
enableServiceLinks: false
responseStartTimeoutSeconds: 600
timeoutSeconds: 1200
terminationGracePeriodSeconds: 30
containers:
- name: agent
image: registry.a2acloud.io/agents/agent-builder:64fdd2cb33d10e13c92d2ea1b69a8638b5895b5c
@@ -63,9 +67,25 @@ spec:
resources:
requests: {cpu: 200m, memory: 512Mi}
limits: {cpu: "1", memory: 1Gi}
traffic:
- latestRevision: true
percent: 100
---
apiVersion: v1
kind: Service
metadata:
name: agent-builder
namespace: agents
annotations:
argocd.argoproj.io/sync-options: ServerSideApply=false,Replace=true
labels:
app: agent-builder
a2a/managed-by: control-plane
spec:
selector:
app: agent-builder
ports:
- name: http
port: 80
targetPort: 8000
protocol: TCP
---
apiVersion: networking.k8s.io/v1
kind: Ingress