rimworld
This commit is contained in:
@@ -1,19 +1,18 @@
|
|||||||
---
|
---
|
||||||
# 1. NAMESPACE
|
# 1. Namespace erstellen
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: rimworld
|
name: rimworld
|
||||||
---
|
---
|
||||||
# 2. SERVICE (MetalLB Integration)
|
# 2. Service für MetalLB (Netzwerkzugriff)
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: rimworld-together-hub
|
name: rimworld-together-hub
|
||||||
namespace: rimworld
|
namespace: rimworld
|
||||||
annotations:
|
annotations:
|
||||||
# Optional: Falls du eine feste IP aus deinem Pool willst, hier eintragen:
|
# MetalLB Annotation für IP-Management
|
||||||
# metallb.universe.tf/loadBalancerIPs: 192.168.x.x
|
|
||||||
metallb.universe.tf/allow-shared-ip: "rimworld-hub"
|
metallb.universe.tf/allow-shared-ip: "rimworld-hub"
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
@@ -21,10 +20,10 @@ spec:
|
|||||||
app: rimworld-together
|
app: rimworld-together
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 9050
|
port: 25555 # Externer Port (wie in deinem Docker-Befehl)
|
||||||
targetPort: 9050
|
targetPort: 25555 # Interner Port im Container
|
||||||
---
|
---
|
||||||
# 3. STATEFULSET (Die App-Logik)
|
# 3. StatefulSet (Die App mit Speicher und Node-Zuweisung)
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
@@ -41,7 +40,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: rimworld-together
|
app: rimworld-together
|
||||||
spec:
|
spec:
|
||||||
# NODE AFFINITY: Damit der Pod auf deinem Gaming-Node landet
|
# Node Affinity: Zwingt den Pod auf deine Gaming-Hardware
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
@@ -53,10 +52,12 @@ spec:
|
|||||||
- Games
|
- Games
|
||||||
containers:
|
containers:
|
||||||
- name: hub
|
- name: hub
|
||||||
image: ghcr.io/rimworldtogether/rimworld-together:latest
|
# KORREKTER PFAD: ghcr.io/rimworld-together/rimworld-together
|
||||||
|
image: ghcr.io/rimworld-together/rimworld-together:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
tty: true
|
||||||
|
stdin: true
|
||||||
resources:
|
resources:
|
||||||
# Optimierte Limits für Talos
|
|
||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
@@ -64,19 +65,17 @@ spec:
|
|||||||
cpu: 1000m
|
cpu: 1000m
|
||||||
memory: 2Gi
|
memory: 2Gi
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9050
|
- containerPort: 25555
|
||||||
name: hub-port
|
name: hub-port
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: storage
|
- name: storage
|
||||||
mountPath: /app/Data
|
mountPath: /Data # Der Pfad aus dem Docker-Volume-Mapping
|
||||||
# AUTOMATISCHES PVC (Wird von Argo CD verwaltet)
|
# Automatisches Erstellen des Speichers auf Talos
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: storage
|
name: storage
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
# Falls du eine spezielle StorageClass hast (z.B. longhorn), hier eintragen:
|
|
||||||
# storageClassName: "longhorn"
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 2Gi
|
storage: 2Gi
|
||||||
|
|||||||
Reference in New Issue
Block a user