Files
gemini-cli/packages/a2a-server/k8s/deployment.yaml
Adam Weidman c17d2dc0dd feat: /esc resume, Cloud Run keepalive, SSE timeout fix, and GKE eval runner plumbing
Allow canceled tasks to be resumed with new directions by resetting
state to submitted instead of rejecting. Fix race condition where stale
cancellation flag killed new messages after /esc. Add self-request
keepalive pattern so Cloud Run instances stay alive during background
async work. Increase undici SSE timeouts from 10min to 1hr to match
Cloud Run request timeout. Extract final text only from status message
(not history) to avoid intermediate narration. Add GKE LoadBalancer
service, remote agent definitions, and agent registry caching.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 16:48:08 -05:00

75 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: gemini-a2a-server
labels:
app: gemini-a2a-server
spec:
replicas: 1
selector:
matchLabels:
app: gemini-a2a-server
template:
metadata:
labels:
app: gemini-a2a-server
spec:
containers:
- name: a2a-server
image: us-central1-docker.pkg.dev/adamfweidman-test/gemini-a2a/a2a-server:latest
ports:
- containerPort: 8080
protocol: TCP
env:
- name: CODER_AGENT_PORT
value: "8080"
- name: CODER_AGENT_HOST
value: "0.0.0.0"
- name: CODER_AGENT_WORKSPACE_PATH
value: "/workspace"
- name: GEMINI_API_KEY
valueFrom:
secretKeyRef:
name: gemini-secrets
key: api-key
- name: GEMINI_YOLO_MODE
value: "true"
- name: NODE_ENV
value: "production"
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "2000m"
memory: "2Gi"
readinessProbe:
httpGet:
path: /.well-known/agent-card.json
port: 8080
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /.well-known/agent-card.json
port: 8080
initialDelaySeconds: 15
periodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: gemini-a2a-server
labels:
app: gemini-a2a-server
annotations:
networking.gke.io/load-balancer-type: "Internal"
spec:
type: LoadBalancer
selector:
app: gemini-a2a-server
ports:
- port: 80
targetPort: 8080
protocol: TCP