- 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
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
---
|
|
# Service named after the thematic identity: journey-into-imagination
|
|
# This is the DNS name used in ingress-nginx TCP forwarding config.
|
|
# Internal DNS: journey-into-imagination.local.mk-labs.cloud
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: journey-into-imagination
|
|
namespace: minecraft
|
|
labels:
|
|
app.kubernetes.io/name: minecraft
|
|
app.kubernetes.io/component: papermc
|
|
annotations:
|
|
# Internal DNS via ExternalDNS + Technitium
|
|
external-dns.alpha.kubernetes.io/hostname: "journey-into-imagination.local.mk-labs.cloud,journey-into-imagination.mk-labs.cloud"
|
|
# Non-standard external port 10182 → internal 25565 (via ingress-nginx tcp forwarding)
|
|
# Public DNS via ExternalDNS + Cloudflare
|
|
# Cloudflare proxy MUST be off — TCP (non-HTTP) traffic cannot be proxied
|
|
external-dns.alpha.kubernetes.io/public: "true"
|
|
external-dns.alpha.kubernetes.io/target: "ingress.mk-labs.cloud"
|
|
external-dns.alpha.kubernetes.io/cloudflare-proxied: "false"
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app.kubernetes.io/name: minecraft
|
|
app.kubernetes.io/component: papermc
|
|
ports:
|
|
- name: minecraft
|
|
port: 25565
|
|
targetPort: 25565
|
|
protocol: TCP
|
|
- name: rcon
|
|
port: 25575
|
|
targetPort: 25575
|
|
protocol: TCP
|
|
- name: metrics
|
|
port: 9225
|
|
targetPort: 9225
|
|
protocol: TCP
|