Moves configuration in k8s example to a ConfigMap (#62)
* Adds ConfigMap to kubernetes example with options more fleshed out for easier personalization. * Corrects some syntax changes that crop up when moving this into a ConfigMap * Fixes error introduced in manual merge
This commit is contained in:
1 parent
4e8f21ddf4
commit
3cea5b900b
1 file changed
+48
-3
+48
-3
@@ -1,4 +1,48 @@
|
|||||||
---
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: minecraft-bedrock
|
||||||
|
labels:
|
||||||
|
role: service-config
|
||||||
|
app: bds
|
||||||
|
data:
|
||||||
|
# Find more options at https://github.com/itzg/docker-minecraft-bedrock-server#server-properties
|
||||||
|
# Remove # from in front of line if changing from default values.
|
||||||
|
EULA: "TRUE" # Must accept EULA to use this minecraft server
|
||||||
|
#GAMEMODE: "survival" # Options: survival, creative, adventure
|
||||||
|
#DIFFICULTY: "easy" # Options: peaceful, easy, normal, hard
|
||||||
|
#DEFAULT_PLAYER_PERMISSION_LEVEL: "member" # Options: visitor, member, operator
|
||||||
|
#LEVEL_NAME: "my_minecraft_world"
|
||||||
|
#LEVEL_SEED: "33480944"
|
||||||
|
#SERVER_NAME: "my_minecraft_server"
|
||||||
|
#SERVER_PORT: "19132"
|
||||||
|
#LEVEL_TYPE: "DEFAULT" # Options: FLAT, LEGACY, DEFAULT
|
||||||
|
#ALLOW_CHEATS: "false" # Options: true, false
|
||||||
|
#MAX_PLAYERS: "10"
|
||||||
|
#PLAYER_IDLE_TIMEOUT: "30"
|
||||||
|
#TEXTUREPACK_REQUIRED: "false" # Options: true, false
|
||||||
|
#
|
||||||
|
## Changing these will have a security impact
|
||||||
|
#ONLINE_MODE: "true" # Options: true, false (removes Xbox Live account requirements)
|
||||||
|
#WHITE_LIST: "false" # If enabled, need to provide a whitelist.json by your own means.
|
||||||
|
#
|
||||||
|
## Changing these will have a performance impact
|
||||||
|
#VIEW_DISTANCE: "10"
|
||||||
|
#TICK_DISTANCE: "4"
|
||||||
|
#MAX_THREADS: "8"
|
||||||
|
---
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: bds
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
@@ -20,12 +64,13 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: main
|
- name: main
|
||||||
image: itzg/minecraft-bedrock-server
|
image: itzg/minecraft-bedrock-server
|
||||||
|
imagePullPolicy: Always
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: minecraft-bedrock
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: data
|
name: data
|
||||||
env:
|
|
||||||
- name: EULA
|
|
||||||
value: "TRUE"
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 19132
|
- containerPort: 19132
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
|
|||||||
Reference in new issue
Block a user