Files
infrastructure/servers/legion/apps/neuron-beta.yaml
T

90 lines
2.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: neuron-beta
namespace: neuron
labels:
app: neuron-beta
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: neuron-beta
template:
metadata:
labels:
app: neuron-beta
spec:
containers:
- name: neuron
image: registry.neuralplatform.ai/neural-platform/neuron:latest
imagePullPolicy: Always
command:
- bash
- -c
- mkdir -p /root/.neuron && ln -sf /data/neuron.db /root/.neuron/neuron.db && python -m synapse platform serve --mcp-host 0.0.0.0 --mcp-port 8001 --webhook-port 3847
ports:
- name: mcp
containerPort: 8001
- name: webhook
containerPort: 3847
envFrom:
- configMapRef:
name: neuron-config
- secretRef:
name: neuron-secrets
volumeMounts:
- name: data
mountPath: /data
- name: app-config
mountPath: /app/config/default.yaml
subPath: default.yaml
resources:
requests:
memory: 256Mi
cpu: 100m
ephemeral-storage: 256Mi
limits:
memory: 1Gi
cpu: 500m
ephemeral-storage: 1Gi
livenessProbe:
tcpSocket:
port: mcp
initialDelaySeconds: 15
periodSeconds: 30
readinessProbe:
tcpSocket:
port: mcp
initialDelaySeconds: 10
periodSeconds: 10
volumes:
- name: data
persistentVolumeClaim:
claimName: neuron-beta-data
- name: app-config
configMap:
name: neuron-config
items:
- key: default.yaml
path: default.yaml
---
apiVersion: v1
kind: Service
metadata:
name: neuron-beta
namespace: neuron
spec:
selector:
app: neuron-beta
ports:
- name: mcp
port: 8001
targetPort: 8001
- name: webhook
port: 3847
targetPort: 3847
type: ClusterIP