This commit is contained in:
parent
1e75c2a8ac
commit
2ac150f83f
29
games/factorio/factorio-deployment.yaml
Normal file
29
games/factorio/factorio-deployment.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: factorio
|
||||
namespace: games-ns
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: games
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: games
|
||||
spec:
|
||||
containers:
|
||||
- name: factorio
|
||||
image: factoriotools/factorio
|
||||
ports:
|
||||
- containerPort: 34179
|
||||
- containerPort: 27015
|
||||
volumeMounts:
|
||||
- name: factorio-save
|
||||
mountPath: /factorio
|
||||
volumes:
|
||||
- name: factorio-save
|
||||
persistentVolumeClaim:
|
||||
claimName: factorio-pvc
|
||||
|
13
games/factorio/factorio-pvc.yaml
Normal file
13
games/factorio/factorio-pvc.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: factorio-pvc
|
||||
namespace: games-ns
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
|
19
games/factorio/factorio-service.yaml
Normal file
19
games/factorio/factorio-service.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: factorio-service
|
||||
namespace: games-ns
|
||||
spec:
|
||||
selector:
|
||||
app: games
|
||||
ports:
|
||||
- name: Factorio
|
||||
protocol: UDP
|
||||
port: 34197
|
||||
targetPort: 34197
|
||||
- name: Factorio-TUI
|
||||
protocol: TCP
|
||||
port: 27015
|
||||
targetPort: 27015
|
||||
type: LoadBalancer
|
||||
|
Loading…
Reference in New Issue
Block a user