From 91769d5c14463b81ab5cb1426e562978a8cd14a8 Mon Sep 17 00:00:00 2001 From: Jaime Yera Hidalgo Date: Wed, 22 May 2024 09:39:40 +0200 Subject: [PATCH] MODIFY template and values for JMX image exporter deprecation --- charts/jmx-exporter/templates/patch-template.yaml | 1 + charts/jmx-exporter/values.yaml | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/jmx-exporter/templates/patch-template.yaml b/charts/jmx-exporter/templates/patch-template.yaml index 6fcb1b6..d89ce9e 100644 --- a/charts/jmx-exporter/templates/patch-template.yaml +++ b/charts/jmx-exporter/templates/patch-template.yaml @@ -17,6 +17,7 @@ spec: {{- if .Values.ubi }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}-ubi" {{- end }} + args: [ "{{ .Values.port }}", "{{ .Values.configFileLocation }}" ] ports: - containerPort: {{ .Values.port }} resources: diff --git a/charts/jmx-exporter/values.yaml b/charts/jmx-exporter/values.yaml index a5c391d..6f22a5b 100644 --- a/charts/jmx-exporter/values.yaml +++ b/charts/jmx-exporter/values.yaml @@ -1,8 +1,8 @@ image: - repository: quay.io/sysdig/promcat-jmx-exporter + repository: bitnami/jmx-exporter pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "v1.0.1" + tag: "0.20.0" resources: # We usually recommend not to specify default resources and to leave this as a conscious @@ -36,3 +36,5 @@ customJMXConfigMapName: "" onlyCreateJMXConfigMap: false onlyCreateSidecarPatch: false + +configFileLocation: /opt/jmx_exporter/config.yaml