Richie
Richie

Reputation: 5199

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

My env section currently looks like...

  env:
    - name: JAVA_OPTIONS
      valueFrom:
        secretKeyRef:
          name: mule-java-options
          key: JAVA_OPTIONS
    - name: MULE_KEY
      valueFrom:
        secretKeyRef:
          name: encryption-key
          key: ENCRYPT_KEY
    - name: JAVA_MAX_MEM_RATIO
      value: '35'
    - name: JAVA_DIAGNOSTICS
      value: 'on'

Upvotes: 0

Views: 7056

Answers (2)

Tunceren
Tunceren

Reputation: 774

For multiple variables be like;

-Dfoo=bar -Dbox=fox -DyetAnotherVar=yetAnotherVal

Upvotes: 0

Nicolas Pepinster
Nicolas Pepinster

Reputation: 6191

Depending if you use a Red Hat XPaaS image; you can use JAVA_OPTS_APPEND environment variable :

The contents of JAVA_OPTS_APPEND is appended to JAVA_OPTS on startup.

Example: -Dfoo=bar

Upvotes: 4

Related Questions