add server.properties and update k8s with ram env
This commit is contained in:
@@ -13,31 +13,27 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: minecraft-1-15-1
|
||||
image: ducoterra/minecraft_1.15.1:0.0.1
|
||||
image: ducoterra/minecraft_1.15.1:0.0.4
|
||||
resources:
|
||||
requests:
|
||||
memory: 1Mi
|
||||
cpu: 1m
|
||||
limits:
|
||||
memory: "16Gi"
|
||||
memory: "8Gi"
|
||||
cpu: "4"
|
||||
ports:
|
||||
- containerPort: 25565
|
||||
volumeMounts:
|
||||
- mountPath: /minecraft/world
|
||||
name: world
|
||||
- mountPath: /minecraft/logs
|
||||
name: logs
|
||||
- mountPath: /mc_data
|
||||
name: data
|
||||
tty: true
|
||||
stdin: true
|
||||
command:
|
||||
- "bash"
|
||||
- "-c"
|
||||
- "java -Xmx4096M -Xms1024M -XX:ParallelGCThreads=2 -jar server.jar nogui"
|
||||
env:
|
||||
- name: MAX_RAM
|
||||
value: "8"
|
||||
- name: MIN_RAM
|
||||
value: "1"
|
||||
volumes:
|
||||
- name: world
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: minecraft-1-15-1-world
|
||||
- name: logs
|
||||
persistentVolumeClaim:
|
||||
claimName: minecraft-1-15-1-logs
|
||||
claimName: minecraft-1-15-1
|
||||
|
||||
Reference in New Issue
Block a user