feat(neuron): add neuron-beta deployment on port 8002 with separate PVC
This commit is contained in:
@@ -0,0 +1,89 @@
|
|||||||
|
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 8002 --webhook-port 3848
|
||||||
|
ports:
|
||||||
|
- name: mcp
|
||||||
|
containerPort: 8002
|
||||||
|
- name: webhook
|
||||||
|
containerPort: 3848
|
||||||
|
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: 8002
|
||||||
|
targetPort: 8002
|
||||||
|
- name: webhook
|
||||||
|
port: 3848
|
||||||
|
targetPort: 3848
|
||||||
|
type: ClusterIP
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: neuron-beta-data
|
||||||
|
namespace: neuron
|
||||||
|
spec:
|
||||||
|
storageClassName: local-path
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
Reference in New Issue
Block a user