chore: migrate deploy manifest to knative

This commit is contained in:
robert
2026-05-27 18:59:58 -03:00
parent 77b1e11869
commit dbf2d5f8e2

View File

@@ -1,5 +1,5 @@
apiVersion: apps/v1
kind: Deployment
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: test-helper
namespace: agents
@@ -7,24 +7,25 @@ metadata:
app: test-helper
a2a/managed-by: control-plane
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: test-helper
template:
metadata:
labels:
app: test-helper
annotations:
autoscaling.knative.dev/minScale: "0"
autoscaling.knative.dev/maxScale: "20"
autoscaling.knative.dev/metric: concurrency
autoscaling.knative.dev/target: "1"
spec:
containerConcurrency: 1
timeoutSeconds: 600
containers:
- name: agent
image: registry.a2acloud.io/agents/test-helper:d9859bf06fefd98fa38d408dcb8978663449ef2e
imagePullPolicy: Always
ports:
- containerPort: 8000
name: http
name: http1
readinessProbe:
httpGet: {path: /healthz, port: 8000}
initialDelaySeconds: 2
@@ -37,19 +38,19 @@ spec:
requests: {cpu: 50m, memory: 128Mi}
limits: {cpu: 200m, memory: 256Mi}
---
apiVersion: v1
kind: Service
apiVersion: serving.knative.dev/v1beta1
kind: DomainMapping
metadata:
name: test-helper
name: test-helper.a2acloud.io
namespace: agents
spec:
type: ClusterIP
selector:
labels:
app: test-helper
ports:
- name: http
port: 80
targetPort: 8000
a2a/managed-by: control-plane
spec:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: test-helper
---
apiVersion: networking.k8s.io/v1
kind: Ingress