Initial commit
This commit is contained in:
51
minecraft/stacia-2-expert/stacia-statefulset.yaml
Normal file
51
minecraft/stacia-2-expert/stacia-statefulset.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
namespace: minecraft
|
||||
name: stacia
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: stacia
|
||||
serviceName: stacia-loadbalancer
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: stacia
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 10
|
||||
containers:
|
||||
- name: stacia
|
||||
image: gitea.jsme.be/jeffrey/stacia:1.3.3
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
requests:
|
||||
cpu: 1000m
|
||||
memory: 4Gi
|
||||
limits:
|
||||
cpu: 2000m
|
||||
memory: 8Gi
|
||||
volumeMounts:
|
||||
- name: world
|
||||
mountPath: /opt/minecraft/world
|
||||
- name: backups
|
||||
mountPath: /opt/minecraft/backups
|
||||
subPath: stacia
|
||||
- name: properties-file
|
||||
mountPath: /opt/minecraft/server.properties
|
||||
subPath: server.properties
|
||||
ports:
|
||||
- containerPort: 25565
|
||||
- containerPort: 25575
|
||||
volumes:
|
||||
- name: world
|
||||
persistentVolumeClaim:
|
||||
claimName: stacia-pvc
|
||||
- name: backups
|
||||
persistentVolumeClaim:
|
||||
claimName: minecraft-backups
|
||||
- name: properties-file
|
||||
configMap:
|
||||
name: stacia-properties
|
||||
Reference in New Issue
Block a user