ARTIFACTORY: How to modify artifactory.system.properties in artifactory and artifactory-ha chart

AuthorFullName__c
Paul Pan
articleNumber
000005797
FirstPublishedDate
2023-06-20T19:26:31Z
lastModifiedDate
2025-05-21

ARTIFACTORY: How to modify artifactory.system.properties in artifactory and artifactory-ha chart

When you need to modify configs in artifactory.system.properties and found out that you are in an env where changing the file is not quite convenient. You can follow the steps below.

Solution

First, note that all the properties in artifactory.system.properties can be controlled by javaOpts in artifactory. 

Second, note that changing javaOpts properties may be slightly different depending on if you are using artifactory chart or artifactory-ha chart. 

For Artifactory chart, you can modify the following in values.yaml:

artifactory:
  javaOpts:
    other: "-Dartifactory.gems.compact.index.enabled=true"


For Artifactory-ha chart, you need to add it under primary section in values.yaml:

artifactory:
  primary:
    javaOpts:
      other:"-Dartifactory.gems.compact.index.enabled=true"


Now, validate with an dry-run command to make sure you don’t have any typos in the values.yaml:

helm install --dry-run --values values.yaml art2 jfrog/artifactory --version 107.59.9 | grep -C 10 "extraJavaOpts"

or

helm install --dry-run --values values.yaml art2 jfrog/artifactory-ha --version 107.59.9 | grep -C 10 "extraJavaOpts"


If you still don’t see the correct properties being applied, make sure to check if the <relasename>-artifactory-systemyaml secrect gets updated with the above change.