Skip to content

Conversation

@pminz
Copy link
Contributor

@pminz pminz commented Aug 21, 2024

add JMX support natively on helm charts

{{- if and (eq (.Values.deploy.expose.type) "NodePort") (.Values.deploy.expose.nodePort) }}
nodePort: {{ .Values.deploy.expose.nodePort }}
{{- end}}
- port: 9999
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should only expose this port if jmx is enabled and I don't think we want to expose it via a nodeport as the port value from the template .Values.deploy.expose.nodePort will already be used by the "infinispan" port defined above.

I think the code should be more like:

   {{- if .Values.deploy.jmx.enabled }}
    - port: 9999
      protocol: TCP
      name: jmx
   {{- end}}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated . Thanks

@rigazilla
Copy link
Collaborator

with helm install I get this warn in the logs:

2024-09-03 15:59:52,631 WARN  (main) [org.infinispan.SERVER] ISPN080072: JMX remoting enabled without a default security realm. All connections will be rejected.

and I can't connect with jconsole

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants