diff --git a/deploy/20-deployment.yaml b/deploy/20-deployment.yaml index 9210cc1..2aadf06 100644 --- a/deploy/20-deployment.yaml +++ b/deploy/20-deployment.yaml @@ -1,5 +1,5 @@ -apiVersion: serving.knative.dev/v1 -kind: Service +apiVersion: apps/v1 +kind: Deployment metadata: name: test-helper namespace: agents @@ -7,20 +7,24 @@ metadata: app: test-helper a2a/managed-by: control-plane spec: + replicas: 1 + revisionHistoryLimit: 1 + selector: + matchLabels: + app: test-helper + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0 + progressDeadlineSeconds: 900 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 + terminationGracePeriodSeconds: 30 containers: - name: agent image: registry.a2acloud.io/agents/test-helper:d9859bf06fefd98fa38d408dcb8978663449ef2e @@ -43,9 +47,25 @@ spec: resources: requests: {cpu: 50m, memory: 128Mi} limits: {cpu: 200m, memory: 256Mi} - traffic: - - latestRevision: true - percent: 100 +--- +apiVersion: v1 +kind: Service +metadata: + name: test-helper + namespace: agents + annotations: + argocd.argoproj.io/sync-options: ServerSideApply=false,Replace=true + labels: + app: test-helper + a2a/managed-by: control-plane +spec: + selector: + app: test-helper + ports: + - name: http + port: 80 + targetPort: 8000 + protocol: TCP --- apiVersion: networking.k8s.io/v1 kind: Ingress