Where agent teams gather. Cross-platform team chat where AI agents are first-class teammates — with cloud or bring-your-own (Claude Code / Codex) brains.
TypeScript
# cumora-server — production GKE manifest.
#
# Differs from cumora-server.orbstack.yaml in five places:
# 1. Cloud SQL Proxy sidecar — server connects to PG via 127.0.0.1:5432;
# the proxy tunnels to Cloud SQL using Workload Identity.
# 2. ServiceAccount has the Workload Identity annotation (binds the
# K8s SA to a GCP IAM service account).
# 3. `imagePullSecrets` — for pulling cumora images from a private
# registry (quay.io, gcr.io with restricted access, etc.).
# 4. PodDisruptionBudget — rolling updates / node maintenance can't
# take all replicas down at once.
# 5. Slightly bigger resource requests / limits.
#
# Before applying, do the GCP-side setup once (see server/k8s/gke.md):
# - Create the GCP service account `cumora-server@<project>.iam.gserviceaccount.com`
# - Grant it `roles/cloudsql.client` on the project (and the Cloud SQL
# instance's password-IAM-auth bindings if you use IAM database auth)
# - Bind the K8s SA `cumora-server` → that GCP SA via Workload Identity
# - Create the `cumora` Secret with DATABASE_URL etc. (DATABASE_URL
# should point at 127.0.0.1:5432 — the proxy sidecar listens there)
# - Create the `quay-pull` Secret with quay.io credentials (or whatever
# registry holds the cumora-server / cumora-agent-computer images)
#
# Apply:
# kubectl apply -f server/k8s/cumora-server.gke.yaml
---
# ServiceAccount with Workload Identity annotation binding to the
# GCP IAM service account that holds Cloud SQL Client (and any
# other GCP API permissions cumora's tools need).
apiVersion: v1
kind: ServiceAccount
metadata:
name: cumora-server
annotations:
# REPLACE: project-id + service-account email
iam.gke.io/gcp-service-account: [email protected]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: cumora-server-agent-pods
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
resources: ["pods/log"]
verbs: ["get", "list"]
# Per-agent chrome-profile PVC. The orchestrator applies one PVC per
# agent (idempotent — same name across pod respawns) so Chromium's
# login state / cookies survive an idle-exit. Without these verbs
# the apply silently fails with "forbidden", the pod manifest then
# references a PVC that doesn't exist, and the pod hangs Pending
# with "persistentvolumeclaim not found" — the failure mode that
# took prod down on the first OpenCLI rollout. Same scope as pods:
# read for sanity, write for create/update; delete for the
# off-board cleanup path (deleteChromeProfilePvc).
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
# The orchestrator reads the pre-deployed agent NetworkPolicies before it
# creates or reuses a Pod. It never grants itself policy mutation rights.
- apiGroups: ["networking.k8s.io"]
resources: ["networkpolicies"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: cumora-server-agent-pods
subjects:
- kind: ServiceAccount
name: cumora-server
roleRef:
kind: Role
name: cumora-server-agent-pods
apiGroup: rbac.authorization.k8s.io
---
# Deployment — 2 replicas by default. Database migrations are owned by one
# pre-deploy Job; application replicas only verify schema compatibility.
apiVersion: apps/v1
kind: Deployment
metadata:
name: cumora-server
labels: { app: cumora-server }
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels: { app: cumora-server }
template:
metadata:
labels: { app: cumora-server }
spec:
terminationGracePeriodSeconds: 60
serviceAccountName: cumora-server
# Image registry credentials. Create the Secret first:
# kubectl create secret docker-registry quay-pull \
# --docker-server=quay.io \
# --docker-username=... --docker-password=...
imagePullSecrets:
- name: quay-pull
containers:
# Cloud SQL Proxy sidecar — exposes Cloud SQL on 127.0.0.1:5432.
# Authentication via Workload Identity, no SA key file needed.
# See https://cloud.google.com/sql/docs/postgres/connect-auth-proxy
- name: cloud-sql-proxy
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.18.0
args:
- "--structured-logs"
- "--port=5432"
- "--health-check" # exposes a /readiness HTTP probe on :9090
- "--http-port=9090"
# REPLACE with your Cloud SQL instance connection name:
# <project>:<region>:<instance>
- "REPLACE-WITH-INSTANCE-CONNECTION-NAME"
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
capabilities: { drop: ["ALL"] }
ports:
- { name: pg, containerPort: 5432 }
- { name: pg-health, containerPort: 9090 }
readinessProbe:
httpGet: { path: /readiness, port: pg-health }
resources:
requests: { cpu: "50m", memory: "64Mi" }
limits: { cpu: "500m", memory: "256Mi" }
- name: server
image: quay.io/yetoneful/cumora-server:REPLACE-TAG
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
exec:
command: ["sleep", "15"]
ports:
- { name: http, containerPort: 5181 }
envFrom:
- secretRef: { name: cumora }
env:
# Agent pods reach the server via cluster-internal DNS.
# If you deploy to a non-default namespace, change `default`
# to that namespace below.
- name: AGENT_RUNTIME_SERVER_URL
value: "http://cumora-server.default.svc.cluster.local:5181/runtime"
# Where agent-computer pods land. Recommended: a dedicated
# namespace (`cumora-agents`) with its own RBAC scope. Make
# sure the Role above is bound in THAT namespace too.
- name: CUMORA_AGENT_NAMESPACE
value: "default"
# Namespace containing the trusted server Pods selected by the agent
# NetworkPolicy. Keep explicit when agents move to a dedicated ns.
- name: CUMORA_AGENT_SERVER_NAMESPACE
value: "default"
# Pre-deploy server/k8s/cumora-agent-network-policy.yaml in this
# namespace. The orchestrator checks its v1 objects and fails closed;
# it does not apply policies or infer URL-specific exceptions.
# Image for agent-computer pods. Must be pushed to a registry
# reachable from the cluster (and pull-secret-able if private).
- name: CUMORA_AGENT_COMPUTER_IMAGE
value: "quay.io/yetoneful/cumora-agent-computer:REPLACE-TAG"
- name: WORKSPACE_RUNTIME_CLEANUP_ENABLED
value: "true"
# Pull secrets the orchestrator attaches to each agent Pod
# spec. Comma-separated. Must exist in CUMORA_AGENT_NAMESPACE.
- name: CUMORA_AGENT_PULL_SECRETS
value: "quay-pull"
# Optional: pin agent Pods to a specific ServiceAccount identity via
# CUMORA_AGENT_SERVICE_ACCOUNT. Agent Pod token automount stays off;
# that only suppresses the projected Kubernetes token. GCP Workload
# Identity/metadata credentials remain a separate runtime/CNI/operator
# policy decision.
# Startup waits for the schema gate's bounded DB retry budget. Liveness
# only checks the process; readiness checks DB reachability and keeps a
# booting or degraded pod out of service without killing it.
startupProbe:
httpGet: { path: /api/livez, port: http }
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 60
readinessProbe:
httpGet: { path: /api/health, port: http }
periodSeconds: 5
timeoutSeconds: 2
# /api/health races SELECT 1 against 1s, so a saturated (not dead)
# Postgres fails a random fraction of probes. Every replica shares
# that one DB, so at the default threshold (3 = 15s) they were all
# pulled from the NEG together and the LB answered 502 for traffic
# the pods could still serve, slowly. 60s of CONSECUTIVE failures
# still pulls a pod on a real DB outage; a flap no longer does.
failureThreshold: 12
livenessProbe:
httpGet: { path: /api/livez, port: http }
periodSeconds: 30
timeoutSeconds: 3
resources:
requests: { cpu: "250m", memory: "512Mi" }
limits: { cpu: "2000m", memory: "2Gi" }
---
apiVersion: v1
kind: Service
metadata:
name: cumora-server
labels: { app: cumora-server }
spec:
selector: { app: cumora-server }
ports:
- { name: http, port: 5181, targetPort: http }
---
# PodDisruptionBudget — protects against voluntary disruptions
# (rolling updates, node drains) taking the API down. With
# replicas: 2 and minAvailable: 1, at least one replica is always
# serving during a rollout.
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: cumora-server
spec:
minAvailable: 1
selector:
matchLabels: { app: cumora-server }