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
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: minecraft
|
name: minecraft
|
||||||
namespace: minecraft
|
namespace: minecraft
|
||||||
@ -19,17 +19,17 @@ spec:
|
|||||||
- name: regcred
|
- name: regcred
|
||||||
containers:
|
containers:
|
||||||
- name: minecraft
|
- name: minecraft
|
||||||
image: itzg/minecraft-bedrock-server
|
image: itzg/minecraft-server
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 500m
|
cpu: 2
|
||||||
memory: 5Gi
|
memory: 5Gi
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: minecraft-configmap
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 19132
|
- containerPort: 19132
|
||||||
name: serverport
|
name: serverport
|
||||||
env:
|
|
||||||
- name: EULA
|
|
||||||
value: "TRUE"
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
Reference in New Issue
Block a user