This commit is contained in:
parent
2fc9ef52b1
commit
bbf10df554
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:stable
|
||||
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/games-service.yaml
Normal file
19
games/games-service.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: games-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