- minecraft-prometheus-exporter v3.1.2 plugin (port 9225) - ServiceMonitor for Prometheus scraping - Grafana dashboard ConfigMap (ID 20659, Minecraft server stats) - metrics port added to Service and Deployment containerPorts
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
---
|
|
# server.properties overrides for Journey Into Imagination
|
|
# itzg/minecraft-server reads these as environment variables and
|
|
# writes them into server.properties on startup.
|
|
# Full list: https://docker-minecraft-server.readthedocs.io/en/latest/configuration/server-properties/
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: papermc-config
|
|
namespace: minecraft
|
|
labels:
|
|
app.kubernetes.io/name: minecraft
|
|
app.kubernetes.io/component: papermc
|
|
data:
|
|
# Server identity
|
|
MOTD: "Journey Into Imagination"
|
|
SERVER_NAME: "Journey Into Imagination"
|
|
|
|
# Game settings
|
|
GAMEMODE: "survival"
|
|
DIFFICULTY: "normal"
|
|
PVP: "true"
|
|
MAX_PLAYERS: "20"
|
|
ALLOW_FLIGHT: "true"
|
|
SPAWN_PROTECTION: "0"
|
|
SEED: "-5177989977648707969"
|
|
|
|
# Auth
|
|
ONLINE_MODE: "true"
|
|
|
|
# Whitelist — set to true when ready to lock down the server
|
|
WHITE_LIST: "false"
|
|
ENFORCE_WHITELIST: "false"
|
|
|
|
# Performance / tick safety
|
|
MAX_TICK_TIME: "180000"
|
|
|
|
# RCON (enabled so plugins/admin tools can connect)
|
|
ENABLE_RCON: "true"
|
|
RCON_PORT: "25575"
|
|
|
|
# Plugin auto-download — minecraft-prometheus-exporter for Grafana metrics
|
|
# v3.1.2: https://github.com/sladkoff/minecraft-prometheus-exporter
|
|
# Exposes /metrics on port 9225 (HTTP, Prometheus scrape target)
|
|
PLUGINS: "https://github.com/sladkoff/minecraft-prometheus-exporter/releases/download/v3.1.2/minecraft-prometheus-exporter-3.1.2.jar"
|
|
|