deploy neuron-license service to prod
Adds license deployment, service, ingress route (/license), and Unkey + admin token secrets via ExternalSecret. Image built and pushed by CI on merge of neuron PR #30.
This commit is contained in:
@@ -16,3 +16,15 @@ spec:
|
||||
remoteRef:
|
||||
key: secret/data/neuron-technologies/prod
|
||||
property: gitea_webhook_secret
|
||||
- secretKey: NEURON_LICENSE_ADMIN_TOKEN
|
||||
remoteRef:
|
||||
key: secret/data/neuron-technologies/license
|
||||
property: admin_token
|
||||
- secretKey: UNKEY_ROOT_KEY
|
||||
remoteRef:
|
||||
key: secret/data/neuron-technologies/unkey
|
||||
property: root_key
|
||||
- secretKey: UNKEY_API_ID
|
||||
remoteRef:
|
||||
key: secret/data/neuron-technologies/unkey
|
||||
property: api_id
|
||||
|
||||
@@ -24,6 +24,13 @@ spec:
|
||||
name: neuron-mcp
|
||||
port:
|
||||
number: 8080
|
||||
- path: /license
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: neuron-license
|
||||
port:
|
||||
number: 8082
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
|
||||
@@ -6,6 +6,7 @@ resources:
|
||||
- externalsecret.yaml
|
||||
- mcp-deployment.yaml
|
||||
- rest-deployment.yaml
|
||||
- license-deployment.yaml
|
||||
- services.yaml
|
||||
- ingress.yaml
|
||||
- backup-cronjob.yaml
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: neuron-license
|
||||
namespace: neuron-prod
|
||||
labels:
|
||||
app: neuron-license
|
||||
env: prod
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: neuron-license
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: neuron-license
|
||||
env: prod
|
||||
spec:
|
||||
containers:
|
||||
- name: neuron-license
|
||||
image: registry.neuralplatform.ai/neuron-technologies/neuron-license:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8082
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: neuron-prod-secrets
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
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
|
||||
@@ -1,5 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: neuron-license
|
||||
namespace: neuron-prod
|
||||
labels:
|
||||
app: neuron-license
|
||||
spec:
|
||||
selector:
|
||||
app: neuron-license
|
||||
ports:
|
||||
- name: http
|
||||
port: 8082
|
||||
targetPort: 8082
|
||||
type: ClusterIP
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: neuron-mcp
|
||||
namespace: neuron-prod
|
||||
|
||||
Reference in New Issue
Block a user