mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2026-03-22 04:19:48 +00:00
java edition
This commit is contained in:
15
roles/minecraft/files/minecraft-configmap.yaml
Normal file
15
roles/minecraft/files/minecraft-configmap.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: minecraft-configmap
|
||||
namespace: minecraft
|
||||
data:
|
||||
SERVER_NAME: "Example Minecraft Server"
|
||||
EULA: "true"
|
||||
VERSION: "1.21.1"
|
||||
MAX_PLAYERS: "10"
|
||||
OPS: |
|
||||
tomas
|
||||
ENABLE_WHITELIST: "true"
|
||||
WHITELIST: |
|
||||
tomas
|
||||
@ -1,5 +1,5 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: minecraft
|
||||
namespace: minecraft
|
||||
@ -19,17 +19,17 @@ spec:
|
||||
- name: regcred
|
||||
containers:
|
||||
- name: minecraft
|
||||
image: itzg/minecraft-bedrock-server
|
||||
image: itzg/minecraft-server
|
||||
resources:
|
||||
requests:
|
||||
cpu: 500m
|
||||
cpu: 2
|
||||
memory: 5Gi
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: minecraft-configmap
|
||||
ports:
|
||||
- containerPort: 19132
|
||||
name: serverport
|
||||
env:
|
||||
- name: EULA
|
||||
value: "TRUE"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
Reference in New Issue
Block a user