From 0d1a123a12f24b2e8e38c0a3355e151a94c15eaa Mon Sep 17 00:00:00 2001 From: dingo Date: Sat, 7 Mar 2026 03:20:33 +0000 Subject: [PATCH] k8s: add sor-support deployment (ENABLED_SERVICES=support) --- deploy/k8s/deployment-support.yaml | 101 +++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 deploy/k8s/deployment-support.yaml diff --git a/deploy/k8s/deployment-support.yaml b/deploy/k8s/deployment-support.yaml new file mode 100644 index 0000000..e0b317c --- /dev/null +++ b/deploy/k8s/deployment-support.yaml @@ -0,0 +1,101 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + argocd.argoproj.io/sync-wave: "1" + name: sor-support + namespace: stone-server + labels: + app: sor-support +spec: + replicas: 1 + selector: + matchLabels: + app: sor-support + template: + metadata: + annotations: + sor/redeploy-at: "initial" + labels: + app: sor-support + spec: + imagePullSecrets: + - name: harbor-credentials + + containers: + - name: sor-support + image: registry.aeternalisgames.com/sor/sor-server:latest + ports: + - containerPort: 8080 + + envFrom: + - configMapRef: + name: sor-config + + env: + - name: ENABLED_SERVICES + value: "support" + + - name: ConnectionStrings__Default + valueFrom: + secretKeyRef: + name: sor-app-secrets + key: ConnectionStrings__Default + + - name: ConnectionStrings__Redis + valueFrom: + secretKeyRef: + name: redis-credentials + key: connection-string + + - 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 + + 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: "200m" + memory: "256Mi" + limits: + cpu: "750m" + memory: "768Mi"