Merge pull request 'Wire marketplace Postgres datasource for neuron-mcp' (#18) from feat/marketplace-postgres-infra into main
This commit is contained in:
@@ -7,8 +7,9 @@ data:
|
|||||||
SPRING_PROFILES_ACTIVE: "prod"
|
SPRING_PROFILES_ACTIVE: "prod"
|
||||||
NEURON_DATA_DIR: "/data"
|
NEURON_DATA_DIR: "/data"
|
||||||
NEURON_DB_PATH: "/data/neuron.db"
|
NEURON_DB_PATH: "/data/neuron.db"
|
||||||
NEURON_MARKETPLACE_DB_PATH: "/data/neuron-marketplace.db"
|
|
||||||
NEURON_STORAGE_PATH: "/data"
|
NEURON_STORAGE_PATH: "/data"
|
||||||
|
MARKETPLACE_DB_URL: "jdbc:postgresql://postgres-postgresql.platform.svc.cluster.local:5432/neuron_marketplace"
|
||||||
|
MARKETPLACE_DB_USER: "postgres"
|
||||||
SERVER_TOMCAT_ACCESSLOG_ENABLED: "true"
|
SERVER_TOMCAT_ACCESSLOG_ENABLED: "true"
|
||||||
# Prod: minimal surface — never expose internals
|
# Prod: minimal surface — never expose internals
|
||||||
MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE: "health,info"
|
MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE: "health,info"
|
||||||
|
|||||||
@@ -56,3 +56,7 @@ spec:
|
|||||||
remoteRef:
|
remoteRef:
|
||||||
key: secret/data/neuron-technologies/marketing
|
key: secret/data/neuron-technologies/marketing
|
||||||
property: stripe_marketplace_webhook_secret
|
property: stripe_marketplace_webhook_secret
|
||||||
|
- secretKey: MARKETPLACE_DB_PASSWORD
|
||||||
|
remoteRef:
|
||||||
|
key: secret/data/legion-db
|
||||||
|
property: postgres_password
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ spec:
|
|||||||
slot: blue
|
slot: blue
|
||||||
env: prod
|
env: prod
|
||||||
annotations:
|
annotations:
|
||||||
config-hash: "marketplace-db-subpath-v3"
|
config-hash: "marketplace-postgres-v1"
|
||||||
spec:
|
spec:
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
securityContext:
|
securityContext:
|
||||||
@@ -30,16 +30,6 @@ spec:
|
|||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
initContainers:
|
|
||||||
- name: fix-data-ownership
|
|
||||||
image: busybox:1.36
|
|
||||||
command: ["sh", "-c", "touch /data/neuron-marketplace.db && chown -R 1000:1000 /data"]
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
runAsNonRoot: false
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /data
|
|
||||||
containers:
|
containers:
|
||||||
- name: neuron-mcp
|
- name: neuron-mcp
|
||||||
image: registry.neuralplatform.ai/neuron-technologies/neuron-mcp:v0.15.3
|
image: registry.neuralplatform.ai/neuron-technologies/neuron-mcp:v0.15.3
|
||||||
@@ -67,9 +57,6 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
- name: data
|
|
||||||
mountPath: /app/neuron-marketplace.db
|
|
||||||
subPath: neuron-marketplace.db
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
|
|||||||
Reference in New Issue
Block a user