Files
sor/deploy/k8s/deployment-host.yaml
T
b6ac58bada Switch CDN to S3-compatible Ceph RadosGW (AWSSDK.S3)
Replace custom HttpCdnClient (proprietary upload API) with S3CdnClient
backed by AWSSDK.S3 using ForcePathStyle for Ceph RadosGW compatibility.
CdnOptions gains EndpointUrl/AccessKey/SecretKey/BucketName; removes
UploadBaseUrl/ApiKey. K8s deployments and secrets template updated to
match new config keys.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-27 00:57:15 -05:00

105 lines
3.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: sor-host
namespace: stone-server
labels:
app: sor-host
spec:
replicas: 1
selector:
matchLabels:
app: sor-host
template:
metadata:
labels:
app: sor-host
spec:
# Pull images from Harbor using the harbor-credentials secret.
imagePullSecrets:
- name: harbor-credentials
containers:
- name: sor-host
# CI updates this image tag on every push to master.
image: registry.aeternalisgames.com/sor/sor-server:latest
ports:
- containerPort: 8080
# ── Non-secret config from ConfigMap ──────────────────────────────
envFrom:
- configMapRef:
name: sor-config
# ── Secrets injected as individual env vars ────────────────────────
env:
# Postgres — from the sor-app-secrets Secret (see deploy/secrets/).
- name: ConnectionStrings__Default
valueFrom:
secretKeyRef:
name: sor-app-secrets
key: ConnectionStrings__Default
# Redis — from the pre-existing redis-credentials Secret.
# TODO: verify the key name matches your redis-credentials secret.
- name: ConnectionStrings__Redis
valueFrom:
secretKeyRef:
name: redis-credentials
key: connection-string
# CDN (Ceph RadosGW S3-compatible)
- name: Cdn__PublicBaseUrl
valueFrom:
secretKeyRef:
name: sor-app-secrets
key: Cdn__PublicBaseUrl
- name: Cdn__EndpointUrl
valueFrom:
secretKeyRef:
name: sor-app-secrets
key: Cdn__EndpointUrl
- name: Cdn__AccessKey
valueFrom:
secretKeyRef:
name: sor-app-secrets
key: Cdn__AccessKey
- name: Cdn__SecretKey
valueFrom:
secretKeyRef:
name: sor-app-secrets
key: Cdn__SecretKey
- name: Cdn__BucketName
valueFrom:
secretKeyRef:
name: sor-app-secrets
key: Cdn__BucketName
# ── Health checks ──────────────────────────────────────────────────
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 ─────────────────────────────────────────────────────
resources:
requests:
cpu: "250m"
memory: "256Mi"
limits:
cpu: "1000m"
memory: "1Gi"