Add SOR website deployment/service and ingress; align Argo revision

This commit is contained in:
Shard
2026-04-23 00:13:06 +00:00
parent aaab114a3e
commit afd595fcc8
4 changed files with 110 additions and 1 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ spec:
source:
# TODO: verify this matches your Gitea repository URL.
repoURL: https://git.aeternalisgames.com/dingo/SOR.git
targetRevision: master
targetRevision: main
# ArgoCD watches this path for changes and syncs when manifests are updated.
path: deploy/k8s
+78
View File
@@ -0,0 +1,78 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
name: sor-website
namespace: stone-server
labels:
app: sor-website
spec:
replicas: 1
selector:
matchLabels:
app: sor-website
template:
metadata:
annotations:
sor/redeploy-at: "initial"
labels:
app: sor-website
spec:
imagePullSecrets:
- name: harbor-credentials
containers:
- name: sor-website
image: registry.aeternalisgames.com/sor/sor-website:latest
ports:
- containerPort: 8080
envFrom:
- configMapRef:
name: sor-config
env:
- 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
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: "100m"
memory: "128Mi"
limits:
cpu: "500m"
memory: "512Mi"
+17
View File
@@ -39,7 +39,24 @@ spec:
- control.aeternalisgames.com
secretName: control-tls
# aeternalisgames.com — public website.
- hosts:
- aeternalisgames.com
secretName: website-tls
rules:
# ── Public website ─────────────────────────────────────────────────────────
- host: aeternalisgames.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: sor-website
port:
number: 80
# ── Game server / WebSocket gateway ────────────────────────────────────────
- host: hub.aeternalisgames.com
http:
+14
View File
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: sor-website
namespace: stone-server
spec:
selector:
app: sor-website
ports:
- name: http
protocol: TCP
port: 80
targetPort: 8080
type: ClusterIP