feat(swarm): add swarm self-improvement loop infrastructure

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.
This commit is contained in:
Will Anderson
2026-04-26 00:58:43 -05:00
parent 89a0209637
commit 74dd054a36
22 changed files with 1420 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: neuron-swarm
namespace: argocd
spec:
project: default
source:
repoURL: http://10.43.1.53:3000/will/infrastructure.git
targetRevision: main
path: servers/legion/k8s/neuron-technologies/swarm
destination:
server: https://kubernetes.default.svc
# No single namespace — resources span swarm-alpha/beta/gamma.
# Each resource declares its own namespace.
namespace: swarm-alpha
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
# Don't track Jobs created dynamically by swarm.sh
ignoreDifferences:
- group: batch
kind: Job
namespace: swarm-alpha
jsonPointers: [""]
- group: batch
kind: Job
namespace: swarm-beta
jsonPointers: [""]
- group: batch
kind: Job
namespace: swarm-gamma
jsonPointers: [""]
# Session ConfigMaps are created/deleted by swarm.sh — ignore drift
- group: ""
kind: ConfigMap
name: swarm-alpha-session
namespace: swarm-alpha
jsonPointers: [""]
- group: ""
kind: ConfigMap
name: swarm-beta-session
namespace: swarm-beta
jsonPointers: [""]
- group: ""
kind: ConfigMap
name: swarm-gamma-session
namespace: swarm-gamma
jsonPointers: [""]