a
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
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
|
||||
Reference in New Issue
Block a user