minecraft-tfg
This commit is contained in:
parent
2174c3fae4
commit
03da1899fd
4 changed files with 111 additions and 0 deletions
11
minecraft/curseforge-downloads-pvc.yaml
Normal file
11
minecraft/curseforge-downloads-pvc.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: curseforge-downloads
|
||||||
|
namespace: minecraft
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
71
minecraft/tfg-deployment.yaml
Normal file
71
minecraft/tfg-deployment.yaml
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: tfg
|
||||||
|
namespace: minecraft
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: tfg
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: tfg
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: tfg
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: tfg
|
||||||
|
image: itzg/minecraft-server:java21-graalvm
|
||||||
|
env:
|
||||||
|
- name: ALLOW_FLIGHT
|
||||||
|
value: "true"
|
||||||
|
- name: CF_API_KEY
|
||||||
|
value: $2a$10$GE.ruAAiogu1Zq2/oyPhzuGgFkXxID2ofiIXtnehJlS98/sK6J.Ya
|
||||||
|
- name: CF_FILE_ID
|
||||||
|
value: "6123835"
|
||||||
|
- name: CF_OVERRIDES_EXCLUSIONS
|
||||||
|
value: |
|
||||||
|
shaderpacks/**
|
||||||
|
- name: CF_PARALLEL_DOWNLOADS
|
||||||
|
value: "1"
|
||||||
|
- name: CF_SLUG
|
||||||
|
value: terrafirmagreg-modern
|
||||||
|
- name: EULA
|
||||||
|
value: "TRUE"
|
||||||
|
- name: MAX_TICK_TIME
|
||||||
|
value: "-1"
|
||||||
|
- name: MEMORY
|
||||||
|
value: 12G
|
||||||
|
- name: MOD_PLATFORM
|
||||||
|
value: AUTO_CURSEFORGE
|
||||||
|
- name: ONLINE_MODE
|
||||||
|
value: "false"
|
||||||
|
- name: OVERRIDE_SERVER_PROPERTIES
|
||||||
|
value: "true"
|
||||||
|
- name: SPAWN_PROTECTION
|
||||||
|
value: "0"
|
||||||
|
- name: OPS
|
||||||
|
value: |
|
||||||
|
RoyalCat33
|
||||||
|
RoyalCat20
|
||||||
|
Zoryka
|
||||||
|
ports:
|
||||||
|
- containerPort: 25565
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /data
|
||||||
|
name: tfg-data
|
||||||
|
- mountPath: /downloads
|
||||||
|
name: curseforge-downloads
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: tfg-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: tfg-data
|
||||||
|
- name: curseforge-downloads
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: curseforge-downloads
|
13
minecraft/tfg-pvc.yaml
Normal file
13
minecraft/tfg-pvc.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: tfg-data
|
||||||
|
namespace: minecraft
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: tfg
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 15Gi
|
16
minecraft/tfg-service.yaml
Normal file
16
minecraft/tfg-service.yaml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: tfg
|
||||||
|
namespace: minecraft
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: tfg
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: tfg
|
||||||
|
ports:
|
||||||
|
- name: "25565"
|
||||||
|
port: 25565
|
||||||
|
targetPort: 25565
|
||||||
|
nodePort: 32565
|
Loading…
Reference in a new issue