74dd054a36
Adds complete k8s manifests, ArgoCD app, and Terraform namespace resources for the Neuron swarm self-improvement loop system. Each variant (alpha, beta, gamma) gets its own isolated namespace, PVC, MCP/REST deployments, ExternalSecrets from Vault, RBAC for CI, and a SQLite clone Job template for session startup.
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: sqlite-clone-gamma
|
|
namespace: swarm-gamma
|
|
labels:
|
|
app: swarm-clone
|
|
variant: gamma
|
|
spec:
|
|
ttlSecondsAfterFinished: 3600
|
|
backoffLimit: 3
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: swarm-clone
|
|
variant: gamma
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
securityContext:
|
|
runAsNonRoot: false
|
|
containers:
|
|
- name: sqlite-clone
|
|
image: keinos/sqlite3:latest
|
|
command:
|
|
- sh
|
|
- -c
|
|
- |
|
|
set -e
|
|
echo "Starting SQLite hot-backup from prod to swarm-gamma..."
|
|
sqlite3 /prod-data/neuron.db ".backup /variant-data/neuron.db"
|
|
echo "Backup complete. Verifying..."
|
|
sqlite3 /variant-data/neuron.db "PRAGMA integrity_check;"
|
|
echo "SQLite clone complete for swarm-gamma."
|
|
volumeMounts:
|
|
- name: prod-data
|
|
mountPath: /prod-data
|
|
readOnly: true
|
|
- name: variant-data
|
|
mountPath: /variant-data
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
volumes:
|
|
- name: prod-data
|
|
persistentVolumeClaim:
|
|
claimName: neuron-prod-data
|
|
readOnly: true
|
|
- name: variant-data
|
|
persistentVolumeClaim:
|
|
claimName: swarm-gamma-data
|