Create deploy/k8s/ directory with complete K8s manifests for the ai-code-battle namespace on apexalgo-iad cluster: - Namespace and ArgoCD Application (auto-sync, prune, self-heal) - Match worker Deployment (2 replicas, metrics on :9090) - Index builder Deployment (Recreate strategy) - 6 strategy bot Deployments (random, gatherer, rusher, guardian, swarm, hunter) - ClusterIP Services for all bots (cluster DNS resolution) - SealedSecret templates (API key, R2 creds, bot secrets, Cloudflare token) - All containers from forgejo.ardenone.com/ai-code-battle/ registry - Health/readiness probes and resource limits on all deployments Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: acb-strategy-random
|
|
namespace: ai-code-battle
|
|
labels:
|
|
app.kubernetes.io/name: acb-strategy-random
|
|
app.kubernetes.io/part-of: ai-code-battle
|
|
app.kubernetes.io/component: strategy-bot
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: acb-strategy-random
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: acb-strategy-random
|
|
app.kubernetes.io/part-of: ai-code-battle
|
|
app.kubernetes.io/component: strategy-bot
|
|
spec:
|
|
containers:
|
|
- name: random
|
|
image: forgejo.ardenone.com/ai-code-battle/acb-strategy-random:latest
|
|
env:
|
|
- name: BOT_PORT
|
|
value: "8080"
|
|
- name: BOT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: acb-bot-secrets
|
|
key: random
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
protocol: TCP
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: http
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 10
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
memory: 128Mi
|
|
restartPolicy: Always
|