Add prom exporter to minecraft
This commit is contained in:
parent
7b39763cd5
commit
58b24f6493
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
@ -9,11 +10,48 @@ minecraftServer:
|
|||||||
hardcore: true
|
hardcore: true
|
||||||
version: 1.19.2
|
version: 1.19.2
|
||||||
type: "PAPER"
|
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
|
gameMode: survival
|
||||||
pvp: true
|
pvp: true
|
||||||
memory: 4096M
|
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:
|
persistence:
|
||||||
dataDir:
|
dataDir:
|
||||||
enabled: true
|
enabled: true
|
||||||
Size: 8Gi
|
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
|
||||||
|
Reference in New Issue
Block a user