69 lines
1.9 KiB
YAML
69 lines
1.9 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
namespace: minecraft
|
|
name: atm
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: atm
|
|
serviceName: atm-loadbalancer
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: atm
|
|
spec:
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 10
|
|
containers:
|
|
- name: atm
|
|
image: gitea.jsme.be/jeffrey/atm10:6.1
|
|
imagePullPolicy: Always
|
|
resources:
|
|
requests:
|
|
cpu: 2000m
|
|
memory: 8Gi
|
|
limits:
|
|
cpu: 4000m
|
|
memory: 12Gi
|
|
volumeMounts:
|
|
- name: world
|
|
mountPath: /opt/minecraft/world
|
|
- name: backups
|
|
mountPath: /opt/minecraft/backups
|
|
subPath: atm
|
|
- name: properties-file
|
|
mountPath: /opt/minecraft/server.properties
|
|
subPath: server.properties
|
|
- name: whitelist
|
|
mountPath: /opt/minecraft/whitelist.json
|
|
subPath: whitelist.json
|
|
- name: ftbessentials
|
|
mountPath: /opt/minecraft/config/ftbessentials.snbt
|
|
subPath: ftbessentials.snbt
|
|
- name: ops
|
|
mountPath: /opt/minecraft/ops.json
|
|
subPath: ops.json
|
|
ports:
|
|
- containerPort: 25565
|
|
- containerPort: 25575
|
|
volumes:
|
|
- name: world
|
|
persistentVolumeClaim:
|
|
claimName: atm-pvc
|
|
- name: backups
|
|
persistentVolumeClaim:
|
|
claimName: atm10-backups
|
|
- name: properties-file
|
|
configMap:
|
|
name: atm-properties
|
|
- name: whitelist
|
|
configMap:
|
|
name: atm-whitelist
|
|
- name: ftbessentials
|
|
configMap:
|
|
name: atm-ftbessentials
|
|
- name: ops
|
|
configMap:
|
|
name: atm-ops |