From 03897ae90489154f915c973ee3a241a7c9bbf4a6 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Mon, 13 Mar 2023 14:06:31 +0100 Subject: [PATCH] Try adding a ServiceMonitor as extension --- badhouseplants/values/values.minecraft.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/badhouseplants/values/values.minecraft.yaml b/badhouseplants/values/values.minecraft.yaml index aa65ca6..9662f95 100644 --- a/badhouseplants/values/values.minecraft.yaml +++ b/badhouseplants/values/values.minecraft.yaml @@ -1,4 +1,18 @@ --- +# -------------------------------------------------- +# -- Extensions values +# -------------------------------------------------- +service-account: + enabled: true + resources: + - name: minecraft-exporter + label: + exporter: minecraft + endpoints: + port: metrics +# -------------------------------------------------- +# -- Main values +# -------------------------------------------------- resources: requests: memory: 512Mi @@ -22,10 +36,8 @@ minecraftServer: service: enabled: true embedded: false - annotations: - prometheus.io/port: "9225" - prometheus.io/scrape: "true" - prometheus.io/path: "/metrics" + labels: + exporter: minecraft type: ClusterIP port: 9925 ingress: