chore: migrate deploy manifest to knative
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: serving.knative.dev/v1
|
||||||
kind: Deployment
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: test-helper
|
name: test-helper
|
||||||
namespace: agents
|
namespace: agents
|
||||||
@@ -7,24 +7,25 @@ metadata:
|
|||||||
app: test-helper
|
app: test-helper
|
||||||
a2a/managed-by: control-plane
|
a2a/managed-by: control-plane
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: test-helper
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: test-helper
|
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:
|
spec:
|
||||||
|
containerConcurrency: 1
|
||||||
|
timeoutSeconds: 600
|
||||||
containers:
|
containers:
|
||||||
- name: agent
|
- name: agent
|
||||||
image: registry.a2acloud.io/agents/test-helper:d9859bf06fefd98fa38d408dcb8978663449ef2e
|
image: registry.a2acloud.io/agents/test-helper:d9859bf06fefd98fa38d408dcb8978663449ef2e
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
name: http
|
name: http1
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet: {path: /healthz, port: 8000}
|
httpGet: {path: /healthz, port: 8000}
|
||||||
initialDelaySeconds: 2
|
initialDelaySeconds: 2
|
||||||
@@ -37,19 +38,19 @@ spec:
|
|||||||
requests: {cpu: 50m, memory: 128Mi}
|
requests: {cpu: 50m, memory: 128Mi}
|
||||||
limits: {cpu: 200m, memory: 256Mi}
|
limits: {cpu: 200m, memory: 256Mi}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: serving.knative.dev/v1beta1
|
||||||
kind: Service
|
kind: DomainMapping
|
||||||
metadata:
|
metadata:
|
||||||
name: test-helper
|
name: test-helper.a2acloud.io
|
||||||
namespace: agents
|
namespace: agents
|
||||||
spec:
|
labels:
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: test-helper
|
app: test-helper
|
||||||
ports:
|
a2a/managed-by: control-plane
|
||||||
- name: http
|
spec:
|
||||||
port: 80
|
ref:
|
||||||
targetPort: 8000
|
apiVersion: serving.knative.dev/v1
|
||||||
|
kind: Service
|
||||||
|
name: test-helper
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
|
|||||||
Reference in New Issue
Block a user