Kubernetes (K3s)

Aria's local infrastructure runs on a K3s cluster on the DGX Spark workstation. The cluster orchestrates 51 Kubernetes manifests covering core services, databases, messaging, and observability.

Canonical Deploy

Use this command for core service deployment:

bash scripts/apply-aria-organism.sh

This applies core YAML in dependency order: runtime → guardrails → Redis → bridges → etc. Do NOT use deploy-aria-local-full.sh as the default — it's heavy and may churn unrelated services.

Key Manifests

Core Services

ManifestService
k8s/aria-core/aria-soul.yamlAria Soul deployment
k8s/aria-core/aria-runtime.yamlRuntime configuration
k8s/aria-core/ollama.yamlOllama LLM runtime (fallback)
k8s/aria-core/image-tag-guardrails.yamlImage tag admission policies
k8s/aria-core/manifold-awareness.yamlManifold awareness config

Infrastructure

ManifestComponent
k8s/unified-manifold-light.yamlManifold deployment + service
k8s/unified-manifold-hpa.yamlManifold autoscaler
k8s/redis.yamlRedis cache
k8s/redis-hot-stateful.yamlRedis stateful set
k8s/postgres.yamlPostgreSQL (local dev)
k8s/nats.yamlNATS message queue
k8s/openclaw.yamlOpenClaw persistence
k8s/aria-messaging-bridges.yamlDiscord/Telegram bridges

Namespaces and Organization

ManifestPurpose
k8s/hyperforge-aria-namespace.yamlHyperforge namespace
k8s/aria-organism/Organism kustomization
k8s/aria-resource-optimization/Autoscaling, scheduling (6 files)
k8s/aria-playground/Lens agents, benchmarks (4 files)

Image Policy

CRITICAL: Admission policies require canonical image tags. Example: localhost:5000/aria-soul:deepseek-hybrid-*. See k8s/aria-core/image-tag-guardrails.yaml.

Targeted Updates

When only specific images change, prefer targeted updates over full organism deploy:

docker build -t localhost:5000/aria-soul:latest apps/arias-soul
kubectl set image deployment/aria-soul aria-soul=localhost:5000/aria-soul:latest