helm/factorio/deployment.yaml

49 lines
1.1 KiB
YAML
Raw Normal View History

2022-10-01 09:09:30 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: factorio
spec:
selector:
matchLabels:
app: factorio
template:
metadata:
labels:
app: factorio
spec:
volumes:
- name: config
configMap:
name: factorio
- name: data
hostPath:
path: /data/factorio
containers:
- name: factorio
image: factoriotools/factorio
env:
- name: SAVE_NAME
value: server_krastorio_se
- name: LOAD_LATEST_SAVE
value: "false"
- name: GENERATE_NEW_SAVE
value: "false"
- name: CONFIG
value: /config
resources:
limits:
cpu: "2"
memory: "8Gi"
ports:
- containerPort: 34197
protocol: UDP
name: factorio
- containerPort: 27015
protocol: TCP
name: rcon
volumeMounts:
- mountPath: /factorio
name: data
- mountPath: /config
name: config