fe17d020ef
Single-node k3s cluster cannot schedule a second pod during rolling update (512Mi request × 2 exceeds available memory). Recreate terminates the old pod before starting the new one, trading brief downtime for schedulability.
67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: neuron-mcp
|
|
namespace: neuron-prod
|
|
labels:
|
|
app: neuron-mcp
|
|
env: prod
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: neuron-mcp
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: neuron-mcp
|
|
env: prod
|
|
annotations:
|
|
kubectl.kubernetes.io/restartedAt: "2026-04-24T10:00:00Z"
|
|
spec:
|
|
containers:
|
|
- name: neuron-mcp
|
|
image: registry.neuralplatform.ai/neuron-technologies/neuron-mcp:v0.7.0
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
env:
|
|
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
|
value: "http://alloy.monitoring.svc.cluster.local:4318"
|
|
envFrom:
|
|
- configMapRef:
|
|
name: neuron-prod-config
|
|
- secretRef:
|
|
name: neuron-prod-secrets
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
resources:
|
|
requests:
|
|
cpu: 250m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1Gi
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /actuator/health/liveness
|
|
port: http
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /actuator/health/readiness
|
|
port: http
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 10
|
|
failureThreshold: 3
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: neuron-prod-data
|