Search code examples
jenkinskubernetes-helm

Jenkins helm value for passing JAVA_ARGS


I want to pass some JAVA_ARGS in a jenkins kubernetes instance created using the official helm chart.

Example of such values are:

JAVA_ARGS="-Djava.awt.headless=true -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=86400

etc...

Where in values.yaml is the place to do so?

Is this javaOpts or this javaOpts the place to do so?


Solution

  • The Chart uses Jenkins docker image , which says:

    You might need to customize the JVM running Jenkins, typically to pass system properties (list of props) or tweak heap memory settings. Use JAVA_OPTS environment variable for this purpose.

    In the chart this is set with Values.master.javaOpts from vaues.yaml