From 75bda27d31c9e44fb46388b70f3a610ed484996a Mon Sep 17 00:00:00 2001 From: eddyzags Date: Wed, 25 Sep 2024 12:28:18 +0200 Subject: [PATCH] relayminer: expose additonal port for ping server + define ping.port as value --- charts/relayminer/templates/deployment.yaml | 3 +++ charts/relayminer/templates/service.yaml | 4 ++++ charts/relayminer/values.yaml | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/charts/relayminer/templates/deployment.yaml b/charts/relayminer/templates/deployment.yaml index 4cbb1a9..de65af4 100644 --- a/charts/relayminer/templates/deployment.yaml +++ b/charts/relayminer/templates/deployment.yaml @@ -68,6 +68,9 @@ spec: - name: metrics containerPort: {{ .Values.metrics.port }} protocol: TCP + - name: status + containerPort: {{ .Values.ping.port }} + protocol: TCP resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: diff --git a/charts/relayminer/templates/service.yaml b/charts/relayminer/templates/service.yaml index a41c8c3..3dd240f 100644 --- a/charts/relayminer/templates/service.yaml +++ b/charts/relayminer/templates/service.yaml @@ -15,5 +15,9 @@ spec: targetPort: {{ .Values.metrics.port }} protocol: TCP name: metrics + - port: {{ .Values.ping.port }} + targetPort: {{ .Values.ping.port }} + protocol: TCP + name: status selector: {{- include "relayminer.selectorLabels" . | nindent 4 }} diff --git a/charts/relayminer/values.yaml b/charts/relayminer/values.yaml index fb0e0f9..b0b824b 100644 --- a/charts/relayminer/values.yaml +++ b/charts/relayminer/values.yaml @@ -33,6 +33,9 @@ config: enabled: true # If changing port here, make sure to adjust `metrics.serviceMonitor.port` addr: :9090 + ping: + enabled: true + addr: :8081 pprof: enabled: false addr: localhost:6060 @@ -62,6 +65,9 @@ metrics: enabled: false port: 9090 +ping: + port: 8081 + podAnnotations: {} podLabels: {}