93 lines
2.2 KiB
YAML
93 lines
2.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: test-helper
|
|
namespace: agents
|
|
labels:
|
|
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
|
|
spec:
|
|
enableServiceLinks: false
|
|
terminationGracePeriodSeconds: 30
|
|
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}
|
|
---
|
|
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
|
|
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
|