From 43b68198010a97620a9317b89a7443f5fdae43b9 Mon Sep 17 00:00:00 2001 From: Tim Campbell Date: Tue, 4 Mar 2025 17:59:27 +0100 Subject: [PATCH] Add port definition when using prometheus --- templates/deployment-sidekiq.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/deployment-sidekiq.yaml b/templates/deployment-sidekiq.yaml index de78f46..e69d0cd 100644 --- a/templates/deployment-sidekiq.yaml +++ b/templates/deployment-sidekiq.yaml @@ -220,6 +220,11 @@ spec: value: "true" {{- end }} {{- end }} + {{- if or $context.Values.mastodon.sidekiq.otel.enabled (and $context.Values.mastodon.otel.enabled (ne $context.Values.mastodon.sidekiq.otel.enabled false)) }} + ports: + - name: prometheus + containerPort: {{ .Values.mastodon.metrics.prometheus.port }} + {{- end }} volumeMounts: {{- if (not $context.Values.mastodon.s3.enabled) }} - name: assets