From 487c77958c51dec24c5df90fb23eece942080951 Mon Sep 17 00:00:00 2001 From: Tim Campbell Date: Tue, 4 Mar 2025 18:15:25 +0100 Subject: [PATCH] Make sure everything listens on the correct ports (localhost for web pods because of sidecar, 0.0.0.0 for sidekiq --- templates/deployment-sidekiq.yaml | 2 +- templates/deployment-web.yaml | 2 +- values.yaml | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/deployment-sidekiq.yaml b/templates/deployment-sidekiq.yaml index e69d0cd..f2e692d 100644 --- a/templates/deployment-sidekiq.yaml +++ b/templates/deployment-sidekiq.yaml @@ -212,7 +212,7 @@ spec: - name: MASTODON_PROMETHEUS_EXPORTER_LOCAL value: "true" - name: MASTODON_PROMETHEUS_EXPORTER_HOST - value: {{ $context.Values.mastodon.metrics.prometheus.host }} + value: "0.0.0.0" - name: MASTODON_PROMETHEUS_EXPORTER_PORT value: "{{ $context.Values.mastodon.metrics.prometheus.port }}" {{- if $context.Values.mastodon.metrics.prometheus.sidekiq.detailed }} diff --git a/templates/deployment-web.yaml b/templates/deployment-web.yaml index f5115b2..024cc6c 100644 --- a/templates/deployment-web.yaml +++ b/templates/deployment-web.yaml @@ -200,7 +200,7 @@ spec: - name: MASTODON_PROMETHEUS_EXPORTER_ENABLED value: "true" - name: PROMETHEUS_EXPORTER_HOST - value: {{ $.Values.mastodon.metrics.prometheus.host }} + value: "127.0.0.1" - name: PROMETHEUS_EXPORTER_PORT value: "{{ .Values.mastodon.metrics.prometheus.port }}" {{- if .Values.mastodon.metrics.prometheus.web.detailed }} diff --git a/values.yaml b/values.yaml index 8d4209c..223a3be 100644 --- a/values.yaml +++ b/values.yaml @@ -439,8 +439,7 @@ mastodon: # https://docs.joinmastodon.org/admin/config/#prometheus prometheus: enabled: false - # Host & port for the exporter to listen on - host: localhost + # Port for the exporter to listen on port: 9394 # Prometheus for web pods