How add JAVA_OPTS variable to wildfly by kuberentes yaml file?
I extended the standard wildfly image by creating a Dockerfile
containing:
COPY standalone.conf /opt/wildfly/bin
I added placeholder in standalone.conf
for JAVA_OPTS added by kubernetes environment variable
JAVA_OPTS="$JAVA_OPTS $DYNAMIC_JAVA_OPTS"
Inject the parameter by k8s yaml
env: - name: DYNAMIC_JAVA_OPTS value: -DattributeName=value