deploy agent-builder as deployment
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: serving.knative.dev/v1
|
apiVersion: apps/v1
|
||||||
kind: Service
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: agent-builder
|
name: agent-builder
|
||||||
namespace: agents
|
namespace: agents
|
||||||
@@ -7,20 +7,24 @@ metadata:
|
|||||||
app: agent-builder
|
app: agent-builder
|
||||||
a2a/managed-by: control-plane
|
a2a/managed-by: control-plane
|
||||||
spec:
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
revisionHistoryLimit: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: agent-builder
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 1
|
||||||
|
maxUnavailable: 0
|
||||||
|
progressDeadlineSeconds: 900
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: agent-builder
|
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:
|
spec:
|
||||||
containerConcurrency: 1
|
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
responseStartTimeoutSeconds: 600
|
terminationGracePeriodSeconds: 30
|
||||||
timeoutSeconds: 1200
|
|
||||||
containers:
|
containers:
|
||||||
- name: agent
|
- name: agent
|
||||||
image: registry.a2acloud.io/agents/agent-builder:64fdd2cb33d10e13c92d2ea1b69a8638b5895b5c
|
image: registry.a2acloud.io/agents/agent-builder:64fdd2cb33d10e13c92d2ea1b69a8638b5895b5c
|
||||||
@@ -63,9 +67,25 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests: {cpu: 200m, memory: 512Mi}
|
requests: {cpu: 200m, memory: 512Mi}
|
||||||
limits: {cpu: "1", memory: 1Gi}
|
limits: {cpu: "1", memory: 1Gi}
|
||||||
traffic:
|
---
|
||||||
- latestRevision: true
|
apiVersion: v1
|
||||||
percent: 100
|
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
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
|
|||||||
Reference in New Issue
Block a user