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