OpenShift: We can't provide Java arguments
See original GitHub issueDescribe the bug
Before this PR was merged, we could add Java arguments via the jvmArgs properties (which was wrong and fixed as part of this PR). However, now we don’t have any properties or way to add real Java arguments.
As an example, the args section in the YAML look like:
args:
- '-Dquarkus.http.host=0.0.0.0'
- '-Djava.util.logging.manager=org.jboss.logmanager.LogManager'
- '-jar'
- /deployments/quarkus-run.jar
And what we can’t achieve is to add Java arguments:
args:
- '-Dquarkus.http.host=0.0.0.0'
- '-Djava.util.logging.manager=org.jboss.logmanager.LogManager'
- '-jar'
- /deployments/quarkus-run.jar
- ARG1
- ARG2
I tried to use the property quarkus.openshift.arguments
but it’s replacing all the args section as:
args:
- ARG1
- ARG2
I think this issue is also relevant for Kubernetes and S2I.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Troubleshooting Java applications on OpenShift
In this respect, I want to present in this blog a few approaches for troubleshooting Java applications running on OpenShift.
Read more >how to pass args (i.e.configuration) when deploy on openshift ...
My goal is to provide my specific configuration when I execute it. Running the application locally I got what I want but I...
Read more >Openshift add java option - Stack Overflow
Openshift add java option ... In open shift I would like to change my yaml file to enable to do this... -Djavax.net.debug=ssl:handshake:verbose.
Read more >Installing a cluster on bare metal - OpenShift Documentation
yaml file to provide more details about the platform. After installation, you cannot modify these parameters in the install-config.yaml file.
Read more >Building a Native Executable - Quarkus
If you cannot install GraalVM, you can use a multi-stage Docker build to run Maven ... You can provide custom options for the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
👍
Let’s keep this open as an enhancement request
I think a “appargs” or similar property makes sense to add; but yes - don’t see this as being openshift specific. Should be generally possible for wherever we configure the java/app launch for native and jvmmode.