336a9333a2
Adds the neuron-tim namespace (via Terraform) and a full Argo CD app + k8s manifests mirroring neuron-prod. All deployments set to replicas=0 — nothing runs until Tim's imprint is ready and Vault secrets are populated at secret/neuron-technologies/tim.
62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: neuron-rest
|
|
namespace: neuron-tim
|
|
labels:
|
|
app: neuron-rest
|
|
env: tim
|
|
spec:
|
|
replicas: 0 # Not yet deployed — Tim's imprint not set up
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: neuron-rest
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: neuron-rest
|
|
env: tim
|
|
spec:
|
|
containers:
|
|
- name: neuron-rest
|
|
image: registry.neuralplatform.ai/neuron-technologies/neuron-rest:v0.6.1
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: http
|
|
containerPort: 8081
|
|
envFrom:
|
|
- configMapRef:
|
|
name: neuron-tim-config
|
|
- secretRef:
|
|
name: neuron-tim-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-tim-data
|