Set up JVM Arguments for Application Containers
This topic illustrates on how to set up JVM arguments for Relase containers.
After setup the release will start with additional JVM argument on the Release Java process, in this example: -DsystemProperty=value
.
How to Set up JVM Arguments
- Update the Release CR yaml file by running the following command:
kubectl patch -n digitalai digitalaireleases.xlr.digital.ai dai-xlr \
--type=merge --patch '{"spec":{"jvmArgs": "-DsystemProperty=value"}}'
- The Release pods are automatically restarted.
- The CR yaml file will now have a new
jvmArgs
section.
kubectl get Digitalaireleases dai-xlr -n digitalai -o jsonpath='{.spec.jvmArgs}'
- The restarted pod process will now use the new system property.
To return the setup to the application, set the
jvmArgs
to an empty string.