Gluttony-Cluster/games/factorio/factorio-deployment.yaml

29 lines
575 B
YAML
Raw Normal View History

2023-11-10 20:41:30 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
2023-12-03 02:51:04 +00:00
name: factorio
2023-11-10 20:41:30 +00:00
namespace: games-ns
spec:
replicas: 1
selector:
matchLabels:
2023-12-03 02:51:04 +00:00
app: games
2023-11-10 20:41:30 +00:00
template:
metadata:
labels:
2023-12-03 02:51:04 +00:00
app: games
2023-11-10 20:41:30 +00:00
spec:
containers:
2023-12-03 02:51:04 +00:00
- name: factorio
2023-11-10 20:41:30 +00:00
image: factoriotools/factorio:stable
ports:
- containerPort: 34179
- containerPort: 27015
volumeMounts:
- name: factorio-save
mountPath: /factorio
volumes:
- name: factorio-save
persistentVolumeClaim:
claimName: factorio-pvc