fix minecraft server env variables
This commit is contained in:
@@ -21,20 +21,18 @@ spec:
|
||||
value: "TRUE"
|
||||
- name: MODE
|
||||
value: "survival"
|
||||
- name: TYPE
|
||||
value: "CURSEFORGE"
|
||||
- name: INIT_MEMORY
|
||||
value: 1G
|
||||
- name: MAX_MEMORY
|
||||
value: 4G
|
||||
- name: CF_SERVER_MOD
|
||||
value: "/modpacks/your-modpack.zip"
|
||||
- name: ALLOW_FLIGHT
|
||||
value: "TRUE"
|
||||
- name: USE_AIKAR_FLAGS
|
||||
value: "TRUE"
|
||||
- name: RCON_PASSWORD
|
||||
value: "rcon-password"
|
||||
# - name: CF_SERVER_MOD
|
||||
# value: "/modpacks/your-modpack.zip"
|
||||
# - name: ALLOW_FLIGHT
|
||||
# value: "TRUE"
|
||||
# - name: USE_AIKAR_FLAGS
|
||||
# value: "TRUE"
|
||||
# - name: RCON_PASSWORD
|
||||
# value: "rcon-password"
|
||||
ports:
|
||||
- name: minecraft
|
||||
containerPort: 25565 # Expose port 25565
|
||||
@@ -50,21 +48,18 @@ spec:
|
||||
cpu: 2 #8 # Adjust based on expected workload
|
||||
memory: "4Gi" #"16Gi" # Adjust based on expected workload
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- mcstatus
|
||||
- 127.0.0.1
|
||||
- ping
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
exec:
|
||||
command: [ "/usr/local/bin/mc-monitor", "status", "--host", "localhost" ]
|
||||
# Give it i + p * f seconds to be ready, so 120 seconds
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 5
|
||||
failureThreshold: 20
|
||||
# Monitor ongoing liveness
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- mcstatus
|
||||
- 127.0.0.1
|
||||
- ping
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
command: ["/usr/local/bin/mc-monitor", "status", "--host", "localhost"]
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 60
|
||||
volumeMounts:
|
||||
- name: minecraft-data
|
||||
mountPath: /data
|
||||
|
||||
Reference in New Issue
Block a user