53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
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
|
|
items:
|
|
- key: t
|
|
path: t
|
|
|
|
- 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
|