fb5b93f9d7
- 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)
101 lines
2.7 KiB
YAML
101 lines
2.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: neuron-rest
|
|
namespace: swarm-beta
|
|
labels:
|
|
app: neuron-rest
|
|
env: swarm
|
|
variant: beta
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: neuron-rest
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: neuron-rest
|
|
env: swarm
|
|
variant: beta
|
|
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: "beta"
|
|
- name: NEURON_SWARM_SESSION
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: swarm-beta-session
|
|
key: session_id
|
|
optional: true
|
|
- name: NEURON_SWARM_GOAL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: swarm-beta-session
|
|
key: goal
|
|
optional: true
|
|
- name: NEURON_SWARM_LOOP_MAX
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: swarm-beta-session
|
|
key: loop_max
|
|
optional: true
|
|
envFrom:
|
|
- configMapRef:
|
|
name: swarm-beta-config
|
|
- secretRef:
|
|
name: swarm-beta-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-beta-data
|