Add prom exporter to minecraft

This commit is contained in:
Nikolai Rodionov 2023-03-13 13:15:46 +01:00
parent 7b39763cd5
commit 58b24f6493

View File

@ -1,3 +1,4 @@
---
resources:
requests:
memory: 512Mi
@ -9,11 +10,48 @@ minecraftServer:
hardcore: true
version: 1.19.2
type: "PAPER"
paperDownloadUrl: "https://api.papermc.io/v2/projects/paper/versions/1.19.2/builds/307/downloads/paper-1.19.2-307.jar"
paperDownloadUrl: >
https://api.papermc.io/v2/projects/paper/versions/1.19.2/builds/307/downloads/paper-1.19.2-307.jar
gameMode: survival
pvp: true
memory: 4096M
extraPorts:
- name: metrics
containerPort: 9225
protocol: TCP
service:
enabled: true
embedded: false
annotations:
prometheus.io/port: "9225"
prometheus.io/scrape: "true"
type: ClusterIP
port: 9925
ingress:
enabled: false
persistence:
dataDir:
enabled: true
Size: 8Gi
initContainers:
- name: install-prometheus-exporter
image: alpine/curl
command:
- curl
- -L
- "https://github.com/sladkoff/minecraft-prometheus-exporter/releases/download/v2.5.0/minecraft-prometheus-exporter-2.5.0.jar"
- -o
- /data/plugins/prometheus-exporter.jar
volumeMounts:
- name: plugins
mountPath: /data/plugins
readOnly: false
extraVolumes:
- volumeMounts:
- name: plugins
mountPath: /data/plugins
readOnly: false
volumes:
- name: plugins
emptyDir:
sizeLimit: 500Mi