deploy DHARMA registry to neuron-prod
- Dockerfile for Go DHARMA server (registry.neuralplatform.ai/neuron-technologies/dharma) - k8s manifests: deployment, service, ExternalSecret (Vault), IngressRoute - Argo CD app: deploys to neuron-prod namespace - Cloudflare tunnel rule for dharma.neurontechnologies.ai - DNS CNAME record for dharma.neurontechnologies.ai → legion tunnel - Vault secrets already populated (api_key, encryption_key, jwt_secret, engram_key, engram_url) - Connects to neuron-daemon (engram) at neuron-daemon.neuron-prod.svc.cluster.local:7749
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: dharma
|
||||
namespace: neuron-prod
|
||||
labels:
|
||||
app: dharma
|
||||
env: prod
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: dharma
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: dharma
|
||||
env: prod
|
||||
spec:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1001
|
||||
fsGroup: 1001
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: dharma
|
||||
image: registry.neuralplatform.ai/neuron-technologies/dharma:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8765
|
||||
env:
|
||||
- name: DHARMA_PORT
|
||||
value: "8765"
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: dharma-secrets
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8765
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8765
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
failureThreshold: 3
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 256Mi
|
||||
Reference in New Issue
Block a user