Add Factorio

This commit is contained in:
HDW
2026-04-25 01:09:46 +02:00
parent 9a2a57ec22
commit 013864620d
5 changed files with 64 additions and 67 deletions

View File

@@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: factorio
namespace: factorio
spec:
replicas: 1
selector:
matchLabels:
app: factorio
template:
metadata:
labels:
app: factorio
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: workload
operator: In
values:
- Games
containers:
- name: factorio
image: factoriotools/factorio:latest
ports:
- containerPort: 34197
protocol: UDP
env:
- name: SERVER_NAME
value: "UWU-Danta"
volumeMounts:
- name: data
mountPath: /factorio
volumes:
- name: data
persistentVolumeClaim:
claimName: factorio-data

11
apps/factorio/pve.yaml Normal file
View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: factorio-data
namespace: factorio
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi

View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: factorio-service
namespace: factorio
spec:
type: LoadBalancer
selector:
app: factorio
ports:
- port: 34197
targetPort: 34197
protocol: UDP