Files
sor/deploy/k8s/deployment-collection.yaml
T

68 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
name: sor-collection
namespace: stone-server
labels:
app: sor-collection
spec:
replicas: 1
selector:
matchLabels:
app: sor-collection
template:
metadata:
annotations:
sor/redeploy-at: "initial"
labels:
app: sor-collection
spec:
imagePullSecrets:
- name: harbor-credentials
containers:
- name: sor-collection
image: registry.aeternalisgames.com/sor/sor-server:latest
ports:
- containerPort: 8080
envFrom:
- configMapRef:
name: sor-config
env:
- name: ENABLED_SERVICES
value: "collection"
- name: ConnectionStrings__Default
valueFrom:
secretKeyRef:
name: sor-app-secrets
key: ConnectionStrings__Default
- name: ConnectionStrings__Redis
valueFrom:
secretKeyRef:
name: redis-credentials
key: connection-string
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 15
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
resources:
requests:
cpu: "150m"
memory: "256Mi"
limits:
cpu: "500m"
memory: "512Mi"