Files
infrastructure/servers/legion/k8s/mudcraft/deployment-core.yaml
T

65 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: mudcraft-core
namespace: mudcraft
labels:
app: mudcraft-core
spec:
replicas: 1
selector:
matchLabels:
app: mudcraft-core
template:
metadata:
labels:
app: mudcraft-core
spec:
containers:
- name: mudcraft-core
image: registry.neuralplatform.ai/mudcraft/core:3c5445c55d4e2afe2b4a5e6e4f4ce23e5e3bf374
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