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