67 lines
1.8 KiB
YAML
67 lines
1.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mudcraft-core
|
|
namespace: mudcraft
|
|
labels:
|
|
app: mudcraft-core
|
|
spec:
|
|
replicas: 0
|
|
selector:
|
|
matchLabels:
|
|
app: mudcraft-core
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mudcraft-core
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: registry-pull-secret
|
|
containers:
|
|
- name: mudcraft-core
|
|
image: registry.neuralplatform.ai/mudcraft/core:159b48c4e5c49c46e090400decac659f0fc6f2da
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8080
|
|
env:
|
|
- name: DB_URL
|
|
value: "jdbc:postgresql://postgres-postgresql.platform.svc.cluster.local:5432/mudcraft"
|
|
- name: DB_USER
|
|
value: "mudcraft"
|
|
- name: DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: mudcraft-core-secrets
|
|
key: db-password
|
|
- name: JWT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: mudcraft-core-secrets
|
|
key: jwt-secret
|
|
- name: PLUGIN_API_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: mudcraft-core-secrets
|
|
key: plugin-api-key
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: 8080
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
failureThreshold: 5
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: 8080
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 30
|
|
failureThreshold: 3
|
|
resources:
|
|
requests:
|
|
memory: 512Mi
|
|
cpu: 250m
|
|
limits:
|
|
memory: 1Gi
|
|
cpu: 1000m
|