Files
infrastructure/servers/legion/k8s/neuron-technologies/swarm/rest-deployment-alpha.yaml
Will Anderson fb5b93f9d7 fix broken pods in GCP k3s cluster
- neuron-dev: update neuron-rest and neuron-mcp from dev-d7a587e2 to v0.18.14
- neuron-stage: update neuron-rest/mcp from stage-0f5b2328 to v0.18.14; marketing from :latest to 1e94e8ae
- swarm-alpha/beta/gamma: update neuron-rest and neuron-mcp from v0.15.3 to v0.18.14
- ci runners: fix docker socket path from /var/run/docker.sock to /run/k3s/containerd/containerd.sock (k3s node has no Docker daemon)
2026-04-27 18:17:32 -05:00

101 lines
2.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: neuron-rest
namespace: swarm-alpha
labels:
app: neuron-rest
env: swarm
variant: alpha
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: neuron-rest
template:
metadata:
labels:
app: neuron-rest
env: swarm
variant: alpha
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: neuron-rest
image: registry.neuralplatform.ai/neuron-technologies/neuron-rest:v0.18.14
imagePullPolicy: Always
ports:
- name: http
containerPort: 8081
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 1001
capabilities:
drop: ["ALL"]
env:
- name: NEURON_SWARM_VARIANT
value: "alpha"
- name: NEURON_SWARM_SESSION
valueFrom:
configMapKeyRef:
name: swarm-alpha-session
key: session_id
optional: true
- name: NEURON_SWARM_GOAL
valueFrom:
configMapKeyRef:
name: swarm-alpha-session
key: goal
optional: true
- name: NEURON_SWARM_LOOP_MAX
valueFrom:
configMapKeyRef:
name: swarm-alpha-session
key: loop_max
optional: true
envFrom:
- configMapRef:
name: swarm-alpha-config
- secretRef:
name: swarm-alpha-secrets
volumeMounts:
- name: data
mountPath: /data
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: 1000m
memory: 1Gi
startupProbe:
httpGet:
path: /actuator/health/liveness
port: http
failureThreshold: 30
periodSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health/liveness
port: http
periodSeconds: 30
failureThreshold: 3
readinessProbe:
httpGet:
path: /actuator/health/readiness
port: http
initialDelaySeconds: 5
periodSeconds: 10
failureThreshold: 3
volumes:
- name: data
persistentVolumeClaim:
claimName: swarm-alpha-data