From 25ef948a6ad7ebc013185e2bfddbcd2f70c57bab Mon Sep 17 00:00:00 2001 From: Priyanka Minz Date: Wed, 21 Aug 2024 16:12:19 +0530 Subject: [PATCH] set jmx value when enabled --- templates/statefulset.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index a5cdbb6..71c259e 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -84,7 +84,9 @@ spec: - --logging-config=/etc/config/log4j2.xml - --bind-address=0.0.0.0 - -Djgroups.dns.query={{ printf "%s-ping.%s.svc.%s" (include "infinispan-helm-charts.name" .) .Release.Namespace .Values.deploy.clusterDomain }} + {{- if .Values.deploy.jmx.enabled }} - --jmx 9999 + {{- end }} ports: - containerPort: 8888 name: ping @@ -95,11 +97,11 @@ spec: - containerPort: 11223 name: infinispan-met protocol: TCP - {{if .Values.deploy.jmx.enabled }} + {{- if .Values.deploy.jmx.enabled }} - containerPort: 9999 name: jmx protocol: TCP - {{- end }} + {{- end }} livenessProbe: failureThreshold: 5 httpGet: