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
test-helper/deploy/20-deployment.yaml
2026-05-27 19:41:08 -03:00

73 lines
1.9 KiB
YAML

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: test-helper
namespace: agents
labels:
app: test-helper
a2a/managed-by: control-plane
spec:
template:
metadata:
labels:
app: test-helper
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: 600
containers:
- name: agent
image: registry.a2acloud.io/agents/test-helper:d9859bf06fefd98fa38d408dcb8978663449ef2e
imagePullPolicy: Always
ports:
- containerPort: 8000
name: http1
protocol: TCP
readinessProbe:
httpGet: {path: /healthz, port: 8000}
initialDelaySeconds: 2
periodSeconds: 5
failureThreshold: 3
successThreshold: 1
timeoutSeconds: 1
livenessProbe:
httpGet: {path: /healthz, port: 8000}
initialDelaySeconds: 10
periodSeconds: 15
resources:
requests: {cpu: 50m, memory: 128Mi}
limits: {cpu: 200m, memory: 256Mi}
traffic:
- latestRevision: true
percent: 100
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test-helper
namespace: agents
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
spec:
tls:
- hosts: [test-helper.a2acloud.io]
secretName: test-helper-a2acloud-io-tls
rules:
- host: test-helper.a2acloud.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: test-helper
port:
number: 80